aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/test/models/non_primary_key.rb
diff options
context:
space:
mode:
authornamusyaka <namusyaka@gmail.com>2017-02-08 00:41:56 +0900
committernamusyaka <namusyaka@gmail.com>2017-02-09 01:57:50 +0900
commit3df9117abc7980c54df675503409d9bdcddc1fee (patch)
tree5dcdeb89934e04b4a53a624b912e2f3699afc149 /activerecord/test/models/non_primary_key.rb
parent47113df0341cd7bf56056bc666527978c586c7c5 (diff)
downloadrails-3df9117abc7980c54df675503409d9bdcddc1fee.tar.gz
rails-3df9117abc7980c54df675503409d9bdcddc1fee.tar.bz2
rails-3df9117abc7980c54df675503409d9bdcddc1fee.zip
Fix inspection behavior when the :id column is not primary key
Diffstat (limited to 'activerecord/test/models/non_primary_key.rb')
-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