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