Sha256: 3cf3880ea2ada353c27c07844d3502ffdc6288158fb757348c04ca447be86ae7

Contents?: true

Size: 323 Bytes

Versions: 6

Compression:

Stored size: 323 Bytes

Contents

# frozen_string_literal: true

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

6 entries across 6 versions & 2 rubygems

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