Sha256: c28521413bc8ed602ce48bdf55905043d04815c2c01497c2f4ea69e574f5bfb9

Contents?: true

Size: 246 Bytes

Versions: 6

Compression:

Stored size: 246 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

6 entries across 6 versions & 2 rubygems

Version Path
ibm_db-5.5.0 test/models/dog_lover.rb
ibm_db-5.4.1 test/models/dog_lover.rb
ibm_db-5.4.0 test/models/dog_lover.rb
ibm_db-5.3.2 test/models/dog_lover.rb
ibm_db-5.3.1 test/models/dog_lover.rb
ruby-on-quails-0.1.0 activerecord/test/models/dog_lover.rb