Permalink
Browse files

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

Signed-off-by: Michael Koziarski <michael@koziarski.com>
  • Loading branch information...
1 parent 642d5d2 commit 1d7368200f7ae39e2f058d0b8a31b63f914ed0a2 @Savar Savar committed with NZKoz Mar 30, 2010
@@ -283,7 +283,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:

0 comments on commit 1d73682

Please sign in to comment.