Sha256: 716644572823d808b2e662ddc30faa16609d79fe36ee95174531ae6be38004a1

Contents?: true

Size: 297 Bytes

Versions: 8

Compression:

Stored size: 297 Bytes

Contents

class Dog < ActiveRecord::Base
  belongs_to :breeder, class_name: "DogLover", counter_cache: :bred_dogs_count
  belongs_to :trainer, class_name: "DogLover", counter_cache: :trained_dogs_count
  belongs_to :doglover, foreign_key: :dog_lover_id, class_name: "DogLover", counter_cache: true
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
ibm_db-5.2.0-x86-mingw32 test/models/dog.rb
ibm_db-5.1.0-x86-mingw32 test/models/dog.rb
ibm_db-5.0.5-x86-mingw32 test/models/dog.rb
ibm_db-5.0.4-x86-mingw32 test/models/dog.rb
ibm_db-5.0.3-x86-mingw32 test/models/dog.rb
ibm_db-5.0.2-x86-mingw32 test/models/dog.rb
ibm_db-3.0.5-x86-mingw32 test/models/dog.rb
ibm_db-3.0.5 test/models/dog.rb