mirror of
https://github.com/glitch-soc/mastodon.git
synced 2024-12-01 04:20:13 -05:00
12 lines
588 B
Ruby
12 lines
588 B
Ruby
|
# frozen_string_literal: true
|
||
|
|
||
|
class AddNewNotificationPolicies < ActiveRecord::Migration[7.1]
|
||
|
def change
|
||
|
add_column :notification_policies, :for_not_following, :integer, default: 0, null: false
|
||
|
add_column :notification_policies, :for_not_followers, :integer, default: 0, null: false
|
||
|
add_column :notification_policies, :for_new_accounts, :integer, default: 0, null: false
|
||
|
add_column :notification_policies, :for_private_mentions, :integer, default: 1, null: false
|
||
|
add_column :notification_policies, :for_limited_accounts, :integer, default: 1, null: false
|
||
|
end
|
||
|
end
|