diff options
author | yui-knk <spiketeika@gmail.com> | 2016-01-18 10:27:00 +0900 |
---|---|---|
committer | yui-knk <spiketeika@gmail.com> | 2016-10-31 10:26:09 +0900 |
commit | 7808a90990d32aaead6d9e80f4da2b88e01adc73 (patch) | |
tree | 7cebc285a50fb0dc7663ef23cbb365b1dd23e347 | |
parent | 1f63d09ad78b6dada597e97359dce507c1169081 (diff) | |
download | rails-7808a90990d32aaead6d9e80f4da2b88e01adc73.tar.gz rails-7808a90990d32aaead6d9e80f4da2b88e01adc73.tar.bz2 rails-7808a90990d32aaead6d9e80f4da2b88e01adc73.zip |
Fix the order of `create_table` to match a comment about `:inverse_of` options
In ActiveRecord test :men, :faces, :interests and :zines tables are
used for `:inverse_of` test cases, not `:wheels`.
-rw-r--r-- | activerecord/test/schema/schema.rb | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/activerecord/test/schema/schema.rb b/activerecord/test/schema/schema.rb index 983ac076a9..43c8ad922a 100644 --- a/activerecord/test/schema/schema.rb +++ b/activerecord/test/schema/schema.rb @@ -929,14 +929,14 @@ ActiveRecord::Schema.define do t.integer :zine_id end - create_table :wheels, force: true do |t| - t.references :wheelable, polymorphic: true - end - create_table :zines, force: true do |t| t.string :title end + create_table :wheels, force: true do |t| + t.references :wheelable, polymorphic: true + end + create_table :countries, force: true, id: false, primary_key: "country_id" do |t| t.string :country_id t.string :name |