diff options
Diffstat (limited to 'activerecord/test/models/toy.rb')
-rw-r--r-- | activerecord/test/models/toy.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/activerecord/test/models/toy.rb b/activerecord/test/models/toy.rb index 6c45e99671..ddc7048a56 100644 --- a/activerecord/test/models/toy.rb +++ b/activerecord/test/models/toy.rb @@ -1,6 +1,6 @@ class Toy < ActiveRecord::Base - set_primary_key :toy_id + self.primary_key = :toy_id belongs_to :pet - scope :with_pet, joins(:pet) + scope :with_pet, -> { joins(:pet) } end |