2023-04-07 18:56:11 +00:00
|
|
|
require Rails.root.join('lib', 'mastodon', 'migration_helpers')
|
|
|
|
|
2017-07-16 21:10:34 +00:00
|
|
|
class AddHideNotificationsToMute < ActiveRecord::Migration[5.1]
|
2023-04-07 18:56:11 +00: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 21:10:34 +00:00
|
|
|
end
|
|
|
|
end
|