aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorArthur Nogueira Neves <github@arthurnn.com>2016-10-31 10:54:26 -0400
committerGitHub <noreply@github.com>2016-10-31 10:54:26 -0400
commit7056273845d5f8307f80b98e0ae7a39e6e95ba0b (patch)
treee69ad422313518ffefb4cc16887e6820f5647b13
parente39e7112bdb0da9a1c3b23d45fc1093703796468 (diff)
parent4360ecf7df7220d0a074c6eec40735f5f4390a1b (diff)
downloadrails-7056273845d5f8307f80b98e0ae7a39e6e95ba0b.tar.gz
rails-7056273845d5f8307f80b98e0ae7a39e6e95ba0b.tar.bz2
rails-7056273845d5f8307f80b98e0ae7a39e6e95ba0b.zip
Merge pull request #23094 from yui-knk/fix_ar_test_comment
Fix the order of `create_table` to match a comment about `:inverse_of…
-rw-r--r--activerecord/test/schema/schema.rb9
1 files changed, 4 insertions, 5 deletions
diff --git a/activerecord/test/schema/schema.rb b/activerecord/test/schema/schema.rb
index 983ac076a9..d889f46031 100644
--- a/activerecord/test/schema/schema.rb
+++ b/activerecord/test/schema/schema.rb
@@ -905,7 +905,6 @@ ActiveRecord::Schema.define do
create_table(t, force: true) {}
end
- # NOTE - the following 4 tables are used by models that have :inverse_of options on the associations
create_table :men, force: true do |t|
t.string :name
end
@@ -929,14 +928,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