2023-04-07 14:56:11 -04:00
|
|
|
require Rails.root.join('lib', 'mastodon', 'migration_helpers')
|
|
|
|
|
2017-07-16 17:10:34 -04:00
|
|
|
class AddHideNotificationsToMute < ActiveRecord::Migration[5.1]
|
2023-04-07 14:56:11 -04:00
|
|
|
include Mastodon::MigrationHelpers
|
|
|
|
|
|
|
|
disable_ddl_transaction!
|
|
|
|
|
|
|
|
def up
|
|
|
|
add_column_with_default :mutes, :hide_notifications, :boolean, default: true, allow_null: false
|
|
|
|
end
|
|
|
|
|
|
|
|
def down
|
|
|
|
remove_column :mutes, :hide_notifications
|
2017-07-16 17:10:34 -04:00
|
|
|
end
|
|
|
|
end
|