1
0
mirror of https://github.com/mastodon/mastodon synced 2024-12-04 01:38:17 +09:00

Reset model in migration after removing column (#24250)

This commit is contained in:
Matt Jankowski 2023-03-25 19:40:36 -04:00 committed by GitHub
parent 0663803348
commit 3557a65bb2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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