Browse files

Fix calling quote column name in interpolated string

  • Loading branch information...
1 parent 68e91da commit 29762822517abe1c3218b23525250826f3c80da6 @carlosantoniodasilva carlosantoniodasilva committed Dec 21, 2012
2 activerecord/lib/active_record/connection_adapters/abstract/schema_statements.rb
@@ -339,7 +339,7 @@ def remove_columns(table_name, *column_names)
# to provide these in a migration's +change+ method so it can be reverted.
# In that case, +type+ and +options+ will be used by add_column.
def remove_column(table_name, column_name, type = nil, options = {})
- execute "ALTER TABLE #{quote_table_name(table_name)} DROP #{quote_column_name{column_name}}"
+ execute "ALTER TABLE #{quote_table_name(table_name)} DROP #{quote_column_name(column_name)}"
# Changes the column's definition according to the new options.

0 comments on commit 2976282

Please sign in to comment.