diff options
author | namusyaka <namusyaka@gmail.com> | 2017-02-08 00:41:56 +0900 |
---|---|---|
committer | namusyaka <namusyaka@gmail.com> | 2017-02-09 01:57:50 +0900 |
commit | 3df9117abc7980c54df675503409d9bdcddc1fee (patch) | |
tree | 5dcdeb89934e04b4a53a624b912e2f3699afc149 /activerecord/test/schema | |
parent | 47113df0341cd7bf56056bc666527978c586c7c5 (diff) | |
download | rails-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/schema')
-rw-r--r-- | activerecord/test/schema/schema.rb | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/activerecord/test/schema/schema.rb b/activerecord/test/schema/schema.rb index 08ff0336b9..d1acf4524f 100644 --- a/activerecord/test/schema/schema.rb +++ b/activerecord/test/schema/schema.rb @@ -1039,6 +1039,10 @@ ActiveRecord::Schema.define do create_table :test_with_keyword_column_name, force: true do |t| t.string :desc end + + create_table :non_primary_keys, force: true, id: false do |t| + t.integer :id + end end Course.connection.create_table :courses, force: true do |t| |