Retrospring/db/migrate/20220626134554_remove_ban_r...

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

10 lines
320 B
Ruby
Raw Normal View History

2022-06-26 08:43:34 -07:00
# frozen_string_literal: true
2022-06-26 06:48:05 -07:00
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