aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/lib/active_record/connection_adapters
diff options
context:
space:
mode:
authorJon Leighton <j@jonathanleighton.com>2011-11-29 18:58:41 +0000
committerJon Leighton <j@jonathanleighton.com>2011-11-29 20:13:37 +0000
commit1a474cc8e41522ae079871d297c0e61ee4f6ef35 (patch)
tree23d2b2c2c74dc02f68ad6015bf35ce554096cdde /activerecord/lib/active_record/connection_adapters
parent4aad289428bf46cf4a13f159819f1993f8fc978f (diff)
downloadrails-1a474cc8e41522ae079871d297c0e61ee4f6ef35.tar.gz
rails-1a474cc8e41522ae079871d297c0e61ee4f6ef35.tar.bz2
rails-1a474cc8e41522ae079871d297c0e61ee4f6ef35.zip
Deprecate set_primary_key in favour of self.primary_key=
Diffstat (limited to 'activerecord/lib/active_record/connection_adapters')
-rw-r--r--activerecord/lib/active_record/connection_adapters/abstract/schema_statements.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/activerecord/lib/active_record/connection_adapters/abstract/schema_statements.rb b/activerecord/lib/active_record/connection_adapters/abstract/schema_statements.rb
index faa42e2d19..ce4c5a1383 100644
--- a/activerecord/lib/active_record/connection_adapters/abstract/schema_statements.rb
+++ b/activerecord/lib/active_record/connection_adapters/abstract/schema_statements.rb
@@ -114,7 +114,7 @@ module ActiveRecord
# Defaults to +id+. If <tt>:id</tt> is false this option is ignored.
#
# Also note that this just sets the primary key in the table. You additionally
- # need to configure the primary key in the model via the +set_primary_key+ macro.
+ # need to configure the primary key in the model via +self.primary_key=+.
# Models do NOT auto-detect the primary key from their table definition.
#
# [<tt>:options</tt>]