Test that adding an index also doesn't raise an exception.

[#4809 state:resolved]

Signed-off-by: José Valim <jose.valim@gmail.com>
This commit is contained in:
J. Pablo Fernández 2010-06-15 11:03:30 +02:00 committed by José Valim
parent 0baf83fa18
commit 21957b72ea
1 changed files with 1 additions and 1 deletions

View File

@ -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