Fix Rails/ReversibleMigration cop for change_column (#30835)
This commit is contained in:
@@ -1,7 +1,11 @@
|
||||
# frozen_string_literal: true
|
||||
|
||||
class RemoveDefaultLanguageFromStatuses < ActiveRecord::Migration[5.1]
|
||||
def change
|
||||
def up
|
||||
change_column :statuses, :language, :string, default: nil, null: true
|
||||
end
|
||||
|
||||
def down
|
||||
raise ActiveRecord::IrreversibleMigration
|
||||
end
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user