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

                             
                              
                            
                 
 
                                     
   
# frozen_string_literal: true

class Toy < ActiveRecord::Base
  self.primary_key = :toy_id
  belongs_to :pet

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