aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/test
diff options
context:
space:
mode:
authorJ. Pablo Fernández <pupeno@pupeno.com>2010-06-15 11:03:30 +0200
committerJosé Valim <jose.valim@gmail.com>2010-06-29 21:17:12 +0200
commit21957b72ea394c679d9b17e75b570cc99596322d (patch)
treede4ba77439007d6592fa8c7258232163447be1ba /activerecord/test
parent0baf83fa18a0683d024a0e8f73f99c190a6ab0f1 (diff)
downloadrails-21957b72ea394c679d9b17e75b570cc99596322d.tar.gz
rails-21957b72ea394c679d9b17e75b570cc99596322d.tar.bz2
rails-21957b72ea394c679d9b17e75b570cc99596322d.zip
Test that adding an index also doesn't raise an exception.
[#4809 state:resolved] Signed-off-by: José Valim <jose.valim@gmail.com>
Diffstat (limited to 'activerecord/test')
-rw-r--r--activerecord/test/cases/migration_test.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/activerecord/test/cases/migration_test.rb b/activerecord/test/cases/migration_test.rb
index 8870efac98..4ce9bdb46d 100644
--- a/activerecord/test/cases/migration_test.rb
+++ b/activerecord/test/cases/migration_test.rb
@@ -1627,9 +1627,9 @@ if ActiveRecord::Base.connection.supports_migrations?
connection.create_table :values, :force => true do |t|
t.integer :value
end
- connection.add_index :values, :value
assert_nothing_raised do
+ connection.add_index :values, :value
connection.remove_index :values, :column => :value
end