aboutsummaryrefslogblamecommitdiffstats
path: root/activerecord/test/models/owner.rb
blob: 1c7ed4aa3e898213afb440c4314d27e7646cd1bd (plain) (tree)
1
2
3
4
5
                                
                              
                                               

                                   
class Owner < ActiveRecord::Base
  self.primary_key = :owner_id
  has_many :pets, -> { order 'pets.name desc' }
  has_many :toys, :through => :pets
end