diff options
author | Yves Senn <yves.senn@gmail.com> | 2014-02-05 08:52:59 +0100 |
---|---|---|
committer | Yves Senn <yves.senn@gmail.com> | 2014-02-05 08:52:59 +0100 |
commit | 3ba0eeda02e85c312d2867afc4aa9afea50d93ec (patch) | |
tree | 89f7eb762c154522b00484e54e01dd3f28e10ff2 /activerecord/test/models | |
parent | f92142dce19906cd62382f7938cd748dd48b7d65 (diff) | |
download | rails-3ba0eeda02e85c312d2867afc4aa9afea50d93ec.tar.gz rails-3ba0eeda02e85c312d2867afc4aa9afea50d93ec.tar.bz2 rails-3ba0eeda02e85c312d2867afc4aa9afea50d93ec.zip |
docs, AR already auto-detects primary keys. Closes #13946. [ci skip]
This behavior was introduced since Rails 3.1 (207f266ccaaa9cd04cd2a7513ae5598c4358b510)
but the docs were still out of date.
Diffstat (limited to 'activerecord/test/models')
-rw-r--r-- | activerecord/test/models/mixed_case_monkey.rb | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/activerecord/test/models/mixed_case_monkey.rb b/activerecord/test/models/mixed_case_monkey.rb index 4d37371777..1c35006665 100644 --- a/activerecord/test/models/mixed_case_monkey.rb +++ b/activerecord/test/models/mixed_case_monkey.rb @@ -1,5 +1,3 @@ class MixedCaseMonkey < ActiveRecord::Base - self.primary_key = 'monkeyID' - belongs_to :man end |