aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/test/models/reader.rb
blob: 0207a2bd9274fcd7886a317a1c7243ec1f4268c6 (plain) (blame)
1
2
3
4
5
class Reader < ActiveRecord::Base
  belongs_to :post
  belongs_to :person, :inverse_of => :readers
  belongs_to :single_person, :class_name => 'Person', :foreign_key => :person_id, :inverse_of => :reader
end