Skip to content

Commit

Permalink
Revert "No need to pass options which is never used"
Browse files Browse the repository at this point in the history
Options is needed for some Rails extensions to determine when
referential integrity should be disabled

This reverts commit bcb466c.

Fixes #5052
  • Loading branch information
rafaelfranca committed Feb 15, 2012
1 parent a03e9c6 commit f174e84
Showing 1 changed file with 2 additions and 2 deletions.
Expand Up @@ -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 "
Expand Down Expand Up @@ -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

Expand Down

0 comments on commit f174e84

Please sign in to comment.