aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/test/cases/schema_test_postgresql.rb
diff options
context:
space:
mode:
authorÉtienne Barrié <etienne.barrie@gmail.com>2010-05-16 18:50:25 +0200
committerJeremy Kemper <jeremy@bitsweat.net>2010-05-18 10:55:41 -0700
commit3809c80cd55ac2838f050346800889b6f8e041ef (patch)
tree220fa9b645e29e4a31c166ba813bb14e39fd33b9 /activerecord/test/cases/schema_test_postgresql.rb
parentd3e62fc57ce3a0a1df62359f53d217d434c2d2e6 (diff)
downloadrails-3809c80cd55ac2838f050346800889b6f8e041ef.tar.gz
rails-3809c80cd55ac2838f050346800889b6f8e041ef.tar.bz2
rails-3809c80cd55ac2838f050346800889b6f8e041ef.zip
make add_index and remove_index more resilient; new rename_index method; track database limits
[#3452 state:committed] Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net>
Diffstat (limited to 'activerecord/test/cases/schema_test_postgresql.rb')
-rw-r--r--activerecord/test/cases/schema_test_postgresql.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/activerecord/test/cases/schema_test_postgresql.rb b/activerecord/test/cases/schema_test_postgresql.rb
index 3ed73786a7..3ed9b1974d 100644
--- a/activerecord/test/cases/schema_test_postgresql.rb
+++ b/activerecord/test/cases/schema_test_postgresql.rb
@@ -152,11 +152,11 @@ class SchemaTest < ActiveRecord::TestCase
def test_with_uppercase_index_name
ActiveRecord::Base.connection.execute "CREATE INDEX \"things_Index\" ON #{SCHEMA_NAME}.things (name)"
- assert_nothing_raised { ActiveRecord::Base.connection.remove_index :things, :name => "#{SCHEMA_NAME}.things_Index"}
+ assert_nothing_raised { ActiveRecord::Base.connection.remove_index! "things", "#{SCHEMA_NAME}.things_Index"}
ActiveRecord::Base.connection.execute "CREATE INDEX \"things_Index\" ON #{SCHEMA_NAME}.things (name)"
ActiveRecord::Base.connection.schema_search_path = SCHEMA_NAME
- assert_nothing_raised { ActiveRecord::Base.connection.remove_index :things, :name => "things_Index"}
+ assert_nothing_raised { ActiveRecord::Base.connection.remove_index! "things", "things_Index"}
ActiveRecord::Base.connection.schema_search_path = "public"
end