Permalink
Browse files

Merge pull request #1384 from amatsuda/simplify_drop_table

Remove unused options from drop_table
  • Loading branch information...
2 parents a1b1f91 + bcb466c commit 18b153d15d76ff2f06b76a16ca46b548b7d6750a @tenderlove tenderlove committed May 28, 2011
@@ -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 "
@@ -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
@@ -427,10 +427,6 @@ def table_exists?(name)
tables(nil, schema).include? table
end
- def drop_table(table_name, options = {})
- super(table_name, options)
- end
-
# Returns an array of indexes for the given table.
def indexes(table_name, name = nil)
indexes = []
@@ -568,10 +568,6 @@ def table_exists?(name)
tables(nil, schema).include? table
end
- def drop_table(table_name, options = {})
- super(table_name, options)
- end
-
# Returns an array of indexes for the given table.
def indexes(table_name, name = nil)#:nodoc:
indexes = []

0 comments on commit 18b153d

Please sign in to comment.