diff options
author | Aaron Patterson <aaron.patterson@gmail.com> | 2011-05-28 13:36:40 -0700 |
---|---|---|
committer | Aaron Patterson <aaron.patterson@gmail.com> | 2011-05-28 13:36:40 -0700 |
commit | 18b153d15d76ff2f06b76a16ca46b548b7d6750a (patch) | |
tree | a59c98658f9fe61c8c1e75232f023357d5b87bdd /activerecord/lib/active_record/connection_adapters | |
parent | a1b1f91e062c9f95ba2c4c3e4c8a38b4d6f948d4 (diff) | |
parent | bcb466c543451dce69403aaae047295758589d8e (diff) | |
download | rails-18b153d15d76ff2f06b76a16ca46b548b7d6750a.tar.gz rails-18b153d15d76ff2f06b76a16ca46b548b7d6750a.tar.bz2 rails-18b153d15d76ff2f06b76a16ca46b548b7d6750a.zip |
Merge pull request #1384 from amatsuda/simplify_drop_table
Remove unused options from drop_table
Diffstat (limited to 'activerecord/lib/active_record/connection_adapters')
3 files changed, 2 insertions, 10 deletions
diff --git a/activerecord/lib/active_record/connection_adapters/abstract/schema_statements.rb b/activerecord/lib/active_record/connection_adapters/abstract/schema_statements.rb index a754f46af0..74c07c624d 100644 --- a/activerecord/lib/active_record/connection_adapters/abstract/schema_statements.rb +++ b/activerecord/lib/active_record/connection_adapters/abstract/schema_statements.rb @@ -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 diff --git a/activerecord/lib/active_record/connection_adapters/mysql2_adapter.rb b/activerecord/lib/active_record/connection_adapters/mysql2_adapter.rb index 6e2c3f4527..24d8c8cad2 100644 --- a/activerecord/lib/active_record/connection_adapters/mysql2_adapter.rb +++ b/activerecord/lib/active_record/connection_adapters/mysql2_adapter.rb @@ -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 = [] diff --git a/activerecord/lib/active_record/connection_adapters/mysql_adapter.rb b/activerecord/lib/active_record/connection_adapters/mysql_adapter.rb index ee83f8120d..8d7dd8bacf 100644 --- a/activerecord/lib/active_record/connection_adapters/mysql_adapter.rb +++ b/activerecord/lib/active_record/connection_adapters/mysql_adapter.rb @@ -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 = [] |