Permalink
Browse files

Merge pull request #28070 from kamipo/improve_create_table_force_true

Improve `create_table force: true`
  • Loading branch information...
guilleiguaran committed Feb 20, 2017
2 parents e4088b7 + 48cfb00 commit 084ddba6837a6799fc3ee79fd48e09695b16d469
@@ -273,8 +273,8 @@ def create_table(table_name, comment: nil, **options)
yield td if block_given?
if options[:force] && data_source_exists?(table_name)
drop_table(table_name, options)
if options[:force]
drop_table(table_name, **options, if_exists: true)
end
result = execute schema_creation.accept td

0 comments on commit 084ddba

Please sign in to comment.