diff options
author | Simon Effenberg <savar@schuldeigen.de> | 2010-03-31 01:24:44 +0200 |
---|---|---|
committer | Michael Koziarski <michael@koziarski.com> | 2010-04-06 14:15:57 +1200 |
commit | 4f1d0f6b7e5718d629795b94ac12616241791334 (patch) | |
tree | 9c820414766dfad44abdfc0d717562ccc61fd6ee /activerecord/lib/active_record/connection_adapters | |
parent | ebc80ea1cb9536c41adfc93dd4c8e134b7d0677c (diff) | |
download | rails-4f1d0f6b7e5718d629795b94ac12616241791334.tar.gz rails-4f1d0f6b7e5718d629795b94ac12616241791334.tar.bz2 rails-4f1d0f6b7e5718d629795b94ac12616241791334.zip |
remove_index now uses quote_table_name() [#4300 state:resolved]
Signed-off-by: Michael Koziarski <michael@koziarski.com>
Diffstat (limited to 'activerecord/lib/active_record/connection_adapters')
-rw-r--r-- | activerecord/lib/active_record/connection_adapters/abstract/schema_statements.rb | 2 |
1 files changed, 1 insertions, 1 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 86ba7d72c3..6d4ab501fa 100644 --- a/activerecord/lib/active_record/connection_adapters/abstract/schema_statements.rb +++ b/activerecord/lib/active_record/connection_adapters/abstract/schema_statements.rb @@ -291,7 +291,7 @@ module ActiveRecord # Remove the index named by_branch_party in the accounts table. # remove_index :accounts, :name => :by_branch_party def remove_index(table_name, options = {}) - execute "DROP INDEX #{quote_column_name(index_name(table_name, options))} ON #{table_name}" + execute "DROP INDEX #{quote_column_name(index_name(table_name, options))} ON #{quote_table_name(table_name)}" end def index_name(table_name, options) #:nodoc: |