diff options
author | Carlos Antonio da Silva <carlosantoniodasilva@gmail.com> | 2012-12-21 19:54:44 -0200 |
---|---|---|
committer | Carlos Antonio da Silva <carlosantoniodasilva@gmail.com> | 2012-12-21 19:54:44 -0200 |
commit | 29762822517abe1c3218b23525250826f3c80da6 (patch) | |
tree | 25b0845bab13919c974138f5b3b6e5def4605843 | |
parent | 68e91da765565f0c473463b0b47814592dea5de3 (diff) | |
download | rails-29762822517abe1c3218b23525250826f3c80da6.tar.gz rails-29762822517abe1c3218b23525250826f3c80da6.tar.bz2 rails-29762822517abe1c3218b23525250826f3c80da6.zip |
Fix calling quote column name in interpolated string
-rw-r--r-- | activerecord/lib/active_record/connection_adapters/abstract/schema_statements.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/activerecord/lib/active_record/connection_adapters/abstract/schema_statements.rb b/activerecord/lib/active_record/connection_adapters/abstract/schema_statements.rb index f2d6eb9d27..cdc8433185 100644 --- a/activerecord/lib/active_record/connection_adapters/abstract/schema_statements.rb +++ b/activerecord/lib/active_record/connection_adapters/abstract/schema_statements.rb @@ -339,7 +339,7 @@ module ActiveRecord # 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)}" end # Changes the column's definition according to the new options. |