Skip to content

Commit

Permalink
No need to pass options which is never used
Browse files Browse the repository at this point in the history
  • Loading branch information
amatsuda committed May 28, 2011
1 parent d8f4988 commit bcb466c
Showing 1 changed file with 2 additions and 2 deletions.
Expand Up @@ -161,7 +161,7 @@ def create_table(table_name, options = {})
yield td if block_given?

if options[:force] && table_exists?(table_name)
drop_table(table_name, options)
drop_table(table_name)
end

create_sql = "CREATE#{' TEMPORARY' if options[:temporary]} TABLE "
Expand Down Expand Up @@ -253,7 +253,7 @@ def rename_table(table_name, new_name)
end

# Drops a table from the database.
def drop_table(table_name, options = {})
def drop_table(table_name)
execute "DROP TABLE #{quote_table_name(table_name)}"
end

Expand Down

0 comments on commit bcb466c

Please sign in to comment.