aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/test/models
diff options
context:
space:
mode:
authorYves Senn <yves.senn@gmail.com>2014-02-05 08:52:59 +0100
committerYves Senn <yves.senn@gmail.com>2014-02-05 08:52:59 +0100
commit3ba0eeda02e85c312d2867afc4aa9afea50d93ec (patch)
tree89f7eb762c154522b00484e54e01dd3f28e10ff2 /activerecord/test/models
parentf92142dce19906cd62382f7938cd748dd48b7d65 (diff)
downloadrails-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.rb2
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