Skip to content

Commit

Permalink
[Rails3] Escape reserved words while removing indexes.
Browse files Browse the repository at this point in the history
  • Loading branch information
metaskills committed Aug 2, 2010
1 parent 5aba5ea commit 8e566cb
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -124,7 +124,7 @@ def rename_column(table_name, column_name, new_column_name)
end

def remove_index!(table_name, index_name)
do_execute "DROP INDEX #{table_name}.#{quote_column_name(index_name)}"
do_execute "DROP INDEX #{quote_table_name(table_name)}.#{quote_column_name(index_name)}"
end

def type_to_sql(type, limit = nil, precision = nil, scale = nil)
Expand Down

0 comments on commit 8e566cb

Please sign in to comment.