aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/test/models/citation.rb
blob: 545aa8110d0dd43e752e5940ec3e5b71c17db0c8 (plain) (blame)
1
2
3
4
5
6
class Citation < ActiveRecord::Base
  belongs_to :reference_of, :class_name => "Book", :foreign_key => :book2_id

  belongs_to :book1, :class_name => "Book", :foreign_key => :book1_id
  belongs_to :book2, :class_name => "Book", :foreign_key => :book2_id
end