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