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:
commit
7056273845
1 changed files with 4 additions and 5 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue