diff options
author | Max Lapshin <max@maxidoors.ru> | 2009-04-20 20:08:51 +0400 |
---|---|---|
committer | Pratik Naik <pratiknaik@gmail.com> | 2009-04-21 11:42:40 +0100 |
commit | cdcd638c2f27ebf98ba7aa59512547f58a5e0c61 (patch) | |
tree | 6673b667fd9daa818962d969724adc6a5306741d /activerecord/lib/active_record/connection_adapters/postgresql_adapter.rb | |
parent | b10fb7e7bcb5efea6c93ae52bad125887cfc235c (diff) | |
download | rails-cdcd638c2f27ebf98ba7aa59512547f58a5e0c61.tar.gz rails-cdcd638c2f27ebf98ba7aa59512547f58a5e0c61.tar.bz2 rails-cdcd638c2f27ebf98ba7aa59512547f58a5e0c61.zip |
Fixed wrong quoting of index names in postgres [#2402 state:resolved]
Signed-off-by: Tarmo Tänav <tarmo@itech.ee>
Diffstat (limited to 'activerecord/lib/active_record/connection_adapters/postgresql_adapter.rb')
-rw-r--r-- | activerecord/lib/active_record/connection_adapters/postgresql_adapter.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/activerecord/lib/active_record/connection_adapters/postgresql_adapter.rb b/activerecord/lib/active_record/connection_adapters/postgresql_adapter.rb index ec204d0f03..15e155d025 100644 --- a/activerecord/lib/active_record/connection_adapters/postgresql_adapter.rb +++ b/activerecord/lib/active_record/connection_adapters/postgresql_adapter.rb @@ -858,7 +858,7 @@ module ActiveRecord # Drops an index from a table. def remove_index(table_name, options = {}) - execute "DROP INDEX #{index_name(table_name, options)}" + execute "DROP INDEX #{quote_table_name(index_name(table_name, options))}" end # Maps logical Rails types to PostgreSQL-specific data types. |