Permalink
Browse files

Merge pull request #5055 from rafaelfranca/fix-drop-table

Revert "No need to pass options which is never used"
  • Loading branch information...
2 parents a03e9c6 + f174e84 commit a5874dd118fb205f78e0becee44c4eac01127f8c @jeremy jeremy committed Feb 15, 2012
@@ -163,7 +163,7 @@ def create_table(table_name, options = {})
yield td if block_given?
if options[:force] && table_exists?(table_name)
- drop_table(table_name)
+ drop_table(table_name, options)
end
create_sql = "CREATE#{' TEMPORARY' if options[:temporary]} TABLE "
@@ -294,7 +294,7 @@ def rename_table(table_name, new_name)
end
# Drops a table from the database.
- def drop_table(table_name)
+ def drop_table(table_name, options = {})
execute "DROP TABLE #{quote_table_name(table_name)}"
end

0 comments on commit a5874dd

Please sign in to comment.