diff options
author | Rafael Mendonça França <rafaelmfranca@gmail.com> | 2012-02-15 18:20:56 -0200 |
---|---|---|
committer | Aaron Patterson <aaron.patterson@gmail.com> | 2012-02-26 12:08:44 -0800 |
commit | 663904f869bbca6b88bfe4b9906afbbffea1a0ff (patch) | |
tree | 62da8820e0d1d0bdfd4964b3cd8d3006acb243e0 /activerecord/lib/active_record/connection_adapters/abstract | |
parent | b8c4f2d54562eb6eab46ab7b59b3ea348636e9d5 (diff) | |
download | rails-663904f869bbca6b88bfe4b9906afbbffea1a0ff.tar.gz rails-663904f869bbca6b88bfe4b9906afbbffea1a0ff.tar.bz2 rails-663904f869bbca6b88bfe4b9906afbbffea1a0ff.zip |
Revert "No need to pass options which is never used"
Options is needed for some Rails extensions to determine when
referential integrity should be disabled
This reverts commit bcb466c543451dce69403aaae047295758589d8e.
Fixes #5052
Diffstat (limited to 'activerecord/lib/active_record/connection_adapters/abstract')
-rw-r--r-- | activerecord/lib/active_record/connection_adapters/abstract/schema_statements.rb | 4 |
1 files changed, 2 insertions, 2 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 f79b18390e..1f6a94af34 100644 --- a/activerecord/lib/active_record/connection_adapters/abstract/schema_statements.rb +++ b/activerecord/lib/active_record/connection_adapters/abstract/schema_statements.rb @@ -160,7 +160,7 @@ module ActiveRecord 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 " @@ -252,7 +252,7 @@ module ActiveRecord 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 |