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