mirror of
https://github.com/github/rails.git
synced 2026-04-26 03:00:59 -04:00
5 lines
208 B
Ruby
5 lines
208 B
Ruby
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
|
|
end
|