aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/lib/active_record/connection_adapters/postgresql_adapter.rb
diff options
context:
space:
mode:
authorMax Lapshin <max@maxidoors.ru>2009-04-20 20:08:51 +0400
committerPratik Naik <pratiknaik@gmail.com>2009-04-21 11:42:40 +0100
commitcdcd638c2f27ebf98ba7aa59512547f58a5e0c61 (patch)
tree6673b667fd9daa818962d969724adc6a5306741d /activerecord/lib/active_record/connection_adapters/postgresql_adapter.rb
parentb10fb7e7bcb5efea6c93ae52bad125887cfc235c (diff)
downloadrails-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.rb2
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.