fedibird-fe/db/migrate/20230129193248_add_silence_mode_to_account.rb

16 lines
385 B
Ruby
Raw Normal View History

2022-05-16 12:57:18 +00:00
require Rails.root.join('lib', 'mastodon', 'migration_helpers')
class AddSilenceModeToAccount < ActiveRecord::Migration[6.1]
include Mastodon::MigrationHelpers
disable_ddl_transaction!
def up
safety_assured { add_column_with_default :accounts, :silence_mode, :integer, default: 0, allow_null: false }
end
def down
remove_column :accounts, :silence_mode
end
end