aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/test/models/subscriber.rb
diff options
context:
space:
mode:
Diffstat (limited to 'activerecord/test/models/subscriber.rb')
-rw-r--r--activerecord/test/models/subscriber.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/activerecord/test/models/subscriber.rb b/activerecord/test/models/subscriber.rb
index 5b78014e6f..76e85a0cd3 100644
--- a/activerecord/test/models/subscriber.rb
+++ b/activerecord/test/models/subscriber.rb
@@ -1,5 +1,5 @@
class Subscriber < ActiveRecord::Base
- set_primary_key 'nick'
+ self.primary_key = 'nick'
has_many :subscriptions
has_many :books, :through => :subscriptions
end