Sha256: 50bf46d88297fc78401b8c1a75a97caa3723aabade03c9e5978df3ac63cd81c9

Contents?: true

Size: 316 Bytes

Versions: 20

Compression:

Stored size: 316 Bytes

Contents

class Friendship < ActiveRecord::Base
  belongs_to :friend, class_name: 'Person'
  # friend_too exists to test a bug, and probably shouldn't be used elsewhere
  belongs_to :friend_too, foreign_key: 'friend_id', class_name: 'Person', counter_cache: :friends_too_count
  belongs_to :follower, class_name: 'Person'
end

Version data entries

20 entries across 20 versions & 3 rubygems

Version Path
ibm_db-5.2.0 test/models/friendship.rb
ibm_db-5.1.0 test/models/friendship.rb
ibm_db-5.0.5 test/models/friendship.rb
ibm_db-5.0.4 test/models/friendship.rb
ibm_db-5.0.3 test/models/friendship.rb
ibm_db-5.0.2 test/models/friendship.rb
ibm_db-4.0.0-x86-mingw32 test/models/friendship.rb
ibm_db-4.0.0 test/models/friendship.rb
ibm_db-3.0.4-x86-mingw32 test/models/friendship.rb
ibm_db-3.0.4 test/models/friendship.rb
ibm_db-3.0.3-x86-mingw32 test/models/friendship.rb
ibm_db-3.0.3 test/models/friendship.rb
ibm_db-3.0.2-x86-mingw32 test/models/friendship.rb
ibm_db-3.0.2 test/models/friendship.rb
activejob-lock-0.0.2 rails/activerecord/test/models/friendship.rb
ibm_db-3.0.1 test/models/friendship.rb
ibm_db-3.0.1-x86-mingw32 test/models/friendship.rb
activejob-lock-0.0.1 rails/activerecord/test/models/friendship.rb
activerecord-nuodb-adapter-1.1 test/models/friendship.rb
activerecord-nuodb-adapter-1.0.4 test/models/friendship.rb