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


                              

                              
   
class Toy < ActiveRecord::Base
  set_primary_key :toy_id
  belongs_to :pet

  scope :with_pet, joins(:pet)
end