Remove old ban fields from user table

This commit is contained in:
Karina Kwiatek 2022-06-26 15:48:05 +02:00 committed by Karina Kwiatek
parent 34c747ebf7
commit cd168df9b2
1 changed files with 7 additions and 0 deletions

View File

@ -0,0 +1,7 @@
class RemoveBanRelatedFieldFromUsers < ActiveRecord::Migration[6.1]
def change
remove_column :users, :permanently_banned, :boolean, default: false
remove_column :users, :ban_reason, :string, default: nil
remove_column :users, :banned_until, :datetime, default: nil
end
end