Restore original merging order to enforce if_exists: true

The merging order was accidentally changed at #32447. The original
intention is force `drop_table ... if_exists: true`. #28070.
This commit is contained in:
Ryuta Kamizono 2018-04-29 16:28:11 +09:00
parent 6003257b73
commit 0be7f45ae6

@ -305,8 +305,7 @@ def create_table(table_name, comment: nil, **options)
yield td if block_given?
if options[:force]
drop_opts = { if_exists: true }.merge(**options)
drop_table(table_name, drop_opts)
drop_table(table_name, options.merge(if_exists: true))
end
result = execute schema_creation.accept td