aboutsummaryrefslogblamecommitdiffstats
path: root/activerecord/test/models/friendship.rb
blob: d2e0ddeab081e34a1afb54cf739d30c0b7145b31 (plain) (tree)
1
2
3
4
                                     

                                                                                                                
   
class Friendship < ActiveRecord::Base
  belongs_to :friend, :class_name => 'Person'
  belongs_to :follower, :foreign_key => 'friend_id', :class_name => 'Person', :counter_cache => :followers_count
end