1
0
Fork 1
mirror of https://github.com/mastodon/mastodon.git synced 2025-01-20 21:17:32 +00:00
mastodon/db/post_migrate/20240322161611_remove_obsolete_roles_from_users.rb

9 lines
306 B
Ruby
Raw Normal View History

# frozen_string_literal: true
class RemoveObsoleteRolesFromUsers < ActiveRecord::Migration[7.1]
def change
safety_assured { remove_column :users, :admin, :boolean, default: false, null: false }
safety_assured { remove_column :users, :moderator, :boolean, default: false, null: false }
end
end