Merge pull request #1384 from amatsuda/simplify_drop_table

Remove unused options from drop_table
This commit is contained in:
Aaron Patterson
2011-05-28 13:36:40 -07:00
3 changed files with 2 additions and 10 deletions

View File

@@ -161,7 +161,7 @@ module ActiveRecord
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 @@ module ActiveRecord
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

View File

@@ -427,10 +427,6 @@ module ActiveRecord
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 = []

View File

@@ -568,10 +568,6 @@ module ActiveRecord
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 = []