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

Fix CI failure on Ruby master

Ref https://github.com/ruby/ruby/pull/2857.
This commit is contained in:
Ryuta Kamizono 2020-01-29 09:19:43 +09:00
parent 1795a2f5e8
commit df9b61f38f

View file

@ -98,10 +98,18 @@ module ActiveRecord
t.rename :kind, :cultivar
end
end
assert_equal [
[:rename_column, [:fruits, :cultivar, :kind]],
[:remove_column, [:fruits, :name, :string, {}], nil],
], @recorder.commands
if RUBY_VERSION >= "2.8"
assert_equal [
[:rename_column, [:fruits, :cultivar, :kind]],
[:remove_column, [:fruits, :name, :string], nil],
], @recorder.commands
else
assert_equal [
[:rename_column, [:fruits, :cultivar, :kind]],
[:remove_column, [:fruits, :name, :string, {}], nil],
], @recorder.commands
end
assert_raises(ActiveRecord::IrreversibleMigration) do
@recorder.revert do