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:
parent
1795a2f5e8
commit
df9b61f38f
1 changed files with 12 additions and 4 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue