aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/test/models/dog_lover.rb
blob: a33dc575c59ad4c541c94e762054aa7e5d7552d6 (plain) (blame)
1
2
3
4
class DogLover < ActiveRecord::Base
  has_many :trained_dogs, :class_name => "Dog", :foreign_key => :trainer_id
  has_many :bred_dogs, :class_name => "Dog", :foreign_key => :breeder_id
end