Skip to content
This repository
Browse code

Fix calling quote column name in interpolated string

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

0 notes on commit 2976282

Please sign in to comment.
Something went wrong with that request. Please try again.