Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
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...
commit 663904f869bbca6b88bfe4b9906afbbffea1a0ff 1 parent b8c4f2d
@rafaelfranca rafaelfranca authored tenderlove committed
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
Please sign in to comment.
Something went wrong with that request. Please try again.