aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/test/models
diff options
context:
space:
mode:
authorRafael França <rafaelmfranca@gmail.com>2017-02-08 14:26:26 -0300
committerGitHub <noreply@github.com>2017-02-08 14:26:26 -0300
commit4bb65a8f6d289907c509dceef43fa33833c96362 (patch)
tree5dcdeb89934e04b4a53a624b912e2f3699afc149 /activerecord/test/models
parent47113df0341cd7bf56056bc666527978c586c7c5 (diff)
parent3df9117abc7980c54df675503409d9bdcddc1fee (diff)
downloadrails-4bb65a8f6d289907c509dceef43fa33833c96362.tar.gz
rails-4bb65a8f6d289907c509dceef43fa33833c96362.tar.bz2
rails-4bb65a8f6d289907c509dceef43fa33833c96362.zip
Merge pull request #27935 from namusyaka/fix-hidden-primary_key
Fix inspection behavior when the :id column is not primary key
Diffstat (limited to 'activerecord/test/models')
-rw-r--r--activerecord/test/models/non_primary_key.rb2
1 files changed, 2 insertions, 0 deletions
diff --git a/activerecord/test/models/non_primary_key.rb b/activerecord/test/models/non_primary_key.rb
new file mode 100644
index 0000000000..1cafb09608
--- /dev/null
+++ b/activerecord/test/models/non_primary_key.rb
@@ -0,0 +1,2 @@
+class NonPrimaryKey < ActiveRecord::Base
+end