mirror of https://github.com/rails/rails
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:
parent
0baf83fa18
commit
21957b72ea
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in New Issue