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:
parent
0baf83fa18
commit
21957b72ea
1 changed files with 1 additions and 1 deletions
|
@ -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 a new issue