aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/test/models/dog_lover.rb
blob: aabe914f77daa4560ddf54b125920588f64c13a4 (plain) (blame)
1
2
3
4
5
6
7
# frozen_string_literal: true

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