diff options
author | J. Pablo Fernández <pupeno@pupeno.com> | 2010-06-15 11:03:30 +0200 |
---|---|---|
committer | José Valim <jose.valim@gmail.com> | 2010-06-29 21:17:12 +0200 |
commit | 21957b72ea394c679d9b17e75b570cc99596322d (patch) | |
tree | de4ba77439007d6592fa8c7258232163447be1ba /activerecord/test | |
parent | 0baf83fa18a0683d024a0e8f73f99c190a6ab0f1 (diff) | |
download | rails-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.rb | 2 |
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 |