mirror of
https://github.com/github/rails.git
synced 2026-04-26 03:00:59 -04: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:
committed by
José Valim
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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user