1e6c50e21b
Signed-off-by: Pratik Naik <pratiknaik@gmail.com>
6 lines
118 B
Ruby
6 lines
118 B
Ruby
class Owner < ActiveRecord::Base
|
|
set_primary_key :owner_id
|
|
has_many :pets
|
|
has_many :toys, :through => :pets
|
|
end
|