Browse files

Revert "No need to pass options which is never used"

Options is needed for some Rails extensions to determine when
referential integrity should be disabled

This reverts commit bcb466c.

Fixes #5052
  • Loading branch information...
1 parent b8c4f2d commit 663904f869bbca6b88bfe4b9906afbbffea1a0ff @rafaelfranca rafaelfranca committed with tenderlove Feb 15, 2012
View
4 activerecord/lib/active_record/connection_adapters/abstract/schema_statements.rb
@@ -160,7 +160,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 "
@@ -252,7 +252,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 663904f

Please sign in to comment.