Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

remove_index now uses quote_table_name() [#4300 state:resolved]

Signed-off-by: Michael Koziarski <michael@koziarski.com>
  • Loading branch information...
commit 1d7368200f7ae39e2f058d0b8a31b63f914ed0a2 1 parent 642d5d2
Simon Effenberg Savar authored NZKoz committed
2  activerecord/lib/active_record/connection_adapters/abstract/schema_statements.rb
@@ -283,7 +283,7 @@ def add_index(table_name, column_name, options = {})
283 283 # Remove the index named by_branch_party in the accounts table.
284 284 # remove_index :accounts, :name => :by_branch_party
285 285 def remove_index(table_name, options = {})
286   - execute "DROP INDEX #{quote_column_name(index_name(table_name, options))} ON #{table_name}"
  286 + execute "DROP INDEX #{quote_column_name(index_name(table_name, options))} ON #{quote_table_name(table_name)}"
287 287 end
288 288
289 289 def index_name(table_name, options) #:nodoc:

0 comments on commit 1d73682

Please sign in to comment.
Something went wrong with that request. Please try again.