Reset model in migration after removing column (#24250)

lolsob-rspec
Matt Jankowski 2023-03-25 19:40:36 -04:00 committed by GitHub
parent 85e90f4b7d
commit 38e94af384
1 changed files with 1 additions and 0 deletions

View File

@ -34,6 +34,7 @@ class RemoveSuspendedSilencedAccountFields < ActiveRecord::Migration[5.2]
remove_column :accounts, :suspended, :boolean, null: false, default: false
remove_column :accounts, :silenced, :boolean, null: false, default: false
end
Account.reset_column_information
end
def down