blob: 70b0b598c23b4bc6c344799b0d245cb16ec02369 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
require Rails.root.join('lib', 'mastodon', 'migration_helpers')
class AddModeratorToAccounts < ActiveRecord::Migration[5.2]
include Mastodon::MigrationHelpers
disable_ddl_transaction!
def up
safety_assured { add_column_with_default :users, :moderator, :bool, default: false }
end
def down
remove_column :users, :moderator
end
end
|