aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/test/models/owner.rb
diff options
context:
space:
mode:
Diffstat (limited to 'activerecord/test/models/owner.rb')
-rw-r--r--activerecord/test/models/owner.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/activerecord/test/models/owner.rb b/activerecord/test/models/owner.rb
index 5760b991ec..fea55f4535 100644
--- a/activerecord/test/models/owner.rb
+++ b/activerecord/test/models/owner.rb
@@ -1,5 +1,5 @@
class Owner < ActiveRecord::Base
- set_primary_key :owner_id
+ self.primary_key = :owner_id
has_many :pets
has_many :toys, :through => :pets
end