create_table force
option drops table when if_not_exists
option is present
#51067
Labels
force
option drops table when if_not_exists
option is present
#51067
The problem is here:
rails/activerecord/lib/active_record/connection_adapters/abstract/schema_statements.rb
Lines 293 to 300 in 36c1591
I can't submit this from my work computer, but can somebody put up a PR to make this change to L299:
Edge case where this occurs:
Adding guarded migrations to make migration schema consistent with schema dump for DB that has migrations applied to it that are not in the schema history.
If you copy the table definition from the schema dump and add the
if_not_exists
, running the migration will drop the table if it existsThe text was updated successfully, but these errors were encountered: