This repository has been archived on 2024-07-22. You can view files and clone it, but cannot push or open issues or pull requests.
2023-04-07 11:56:11 -07:00
|
|
|
require Rails.root.join('lib', 'mastodon', 'migration_helpers')
|
|
|
|
|
2017-07-16 14:10:34 -07:00
|
|
|
class AddHideNotificationsToMute < ActiveRecord::Migration[5.1]
|
2023-04-07 11:56:11 -07: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 14:10:34 -07:00
|
|
|
end
|
|
|
|
end
|