提交 4f1d0f6b 编写于 作者: S Simon Effenberg 提交者: Michael Koziarski

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

Signed-off-by: NMichael Koziarski <michael@koziarski.com>
上级 ebc80ea1
......@@ -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:
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册