mirror of
https://github.com/github/rails.git
synced 2026-04-26 03:00:59 -04:00
7 lines
114 B
Ruby
7 lines
114 B
Ruby
class Toy < ActiveRecord::Base
|
|
self.primary_key = :toy_id
|
|
belongs_to :pet
|
|
|
|
scope :with_pet, joins(:pet)
|
|
end
|