Merge pull request #11952 from lmarcetic/master

Remove set_primary_key, replace with primary_key=
This commit is contained in:
Guillermo Iguaran 2013-08-20 21:18:38 -07:00
commit bfd7e8ac4c

@ -188,11 +188,11 @@ end
```
It's also possible to override the column that should be used as the table's
primary key using the `ActiveRecord::Base.set_primary_key` method:
primary key using the `ActiveRecord::Base.primary_key=` method:
```ruby
class Product < ActiveRecord::Base
set_primary_key "product_id"
self.primary_key = "product_id"
end
```