aboutsummaryrefslogblamecommitdiffstats
path: root/activerecord/test/models/toy.rb
blob: ddc7048a56d47cd3137dda0b257d569aee2776cb (plain) (tree)
1
2
3
4
5
6
                              
                            
                 
 
                                     
   
class Toy < ActiveRecord::Base
  self.primary_key = :toy_id
  belongs_to :pet

  scope :with_pet, -> { joins(:pet) }
end