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

  scope :with_pet, joins(:pet)
end