Skip to content

Commit

Permalink
remove_index now uses quote_table_name() [#4300 state:resolved]
Browse files Browse the repository at this point in the history
Signed-off-by: Michael Koziarski <michael@koziarski.com>
  • Loading branch information
savar authored and NZKoz committed Apr 6, 2010
1 parent ebc80ea commit 4f1d0f6
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -291,7 +291,7 @@ def add_index(table_name, column_name, options = {})
# 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:
Expand Down

0 comments on commit 4f1d0f6

Please sign in to comment.