1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00

Merge pull request #23094 from yui-knk/fix_ar_test_comment

Fix the order of `create_table` to match a comment about `:inverse_of…
This commit is contained in:
Arthur Nogueira Neves 2016-10-31 10:54:26 -04:00 committed by GitHub
commit 7056273845

View file

@ -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