1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00

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

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