Sha256: 7a9f303cb708e5c000fd974cd00cfdb50e71c65654102e6376537d3268b13396

Contents?: true

Size: 322 Bytes

Versions: 8

Compression:

Stored size: 322 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

8 entries across 8 versions & 1 rubygems

Version Path
ibm_db-5.2.0-x86-mingw32 test/models/friendship.rb
ibm_db-5.1.0-x86-mingw32 test/models/friendship.rb
ibm_db-5.0.5-x86-mingw32 test/models/friendship.rb
ibm_db-5.0.4-x86-mingw32 test/models/friendship.rb
ibm_db-5.0.3-x86-mingw32 test/models/friendship.rb
ibm_db-5.0.2-x86-mingw32 test/models/friendship.rb
ibm_db-3.0.5-x86-mingw32 test/models/friendship.rb
ibm_db-3.0.5 test/models/friendship.rb