diff options
author | J. Pablo Fernández <pupeno@pupeno.com> | 2010-06-12 03:25:18 +0200 |
---|---|---|
committer | José Valim <jose.valim@gmail.com> | 2010-06-29 21:17:07 +0200 |
commit | ff22b9d451efc4251c28d11453f05fed95378af4 (patch) | |
tree | 3181e60940bba36809be160d5ffafac806a4e1e4 /activerecord/lib | |
parent | af6ec607fa9af96569fd2e143147f2dc0ecd583b (diff) | |
download | rails-ff22b9d451efc4251c28d11453f05fed95378af4.tar.gz rails-ff22b9d451efc4251c28d11453f05fed95378af4.tar.bz2 rails-ff22b9d451efc4251c28d11453f05fed95378af4.zip |
Fixed error when removing an index from a table name values, which is a reserved word, with test.
Signed-off-by: José Valim <jose.valim@gmail.com>
Diffstat (limited to 'activerecord/lib')
-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 0216a8f4ac..76b65bf219 100644 --- a/activerecord/lib/active_record/connection_adapters/abstract/schema_statements.rb +++ b/activerecord/lib/active_record/connection_adapters/abstract/schema_statements.rb @@ -365,7 +365,7 @@ module ActiveRecord end def remove_index!(table_name, index_name) #:nodoc: - execute "DROP INDEX #{quote_column_name(index_name)} ON #{table_name}" + execute "DROP INDEX #{quote_column_name(index_name)} ON #{quote_table_name(table_name)}" end # Rename an index. |