Sha256: f80ab652621c7d593aa51de54d2eb31196b8478566bc4be0d88de218115faf21

Contents?: true

Size: 253 Bytes

Versions: 4

Compression:

Stored size: 253 Bytes

Contents

# 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

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
ibm_db-5.5.0-x86-mingw32 test/models/dog_lover.rb
ibm_db-5.4.1-x86-mingw32 test/models/dog_lover.rb
ibm_db-5.4.0-x86-mingw32 test/models/dog_lover.rb
ibm_db-5.3.2-x86-mingw32 test/models/dog_lover.rb