0
0
Fork 0

Fix Rails/ReversibleMigration cop for change_column (#30835)

This commit is contained in:
Matt Jankowski 2024-06-26 09:51:11 -04:00 committed by GitHub
parent 7a84b76bb1
commit 528a7f57fa
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 15 additions and 3 deletions

View file

@ -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