20240808114841_add_new_notification_policies.rb 588 B

1234567891011
  1. # frozen_string_literal: true
  2. class AddNewNotificationPolicies < ActiveRecord::Migration[7.1]
  3. def change
  4. add_column :notification_policies, :for_not_following, :integer, default: 0, null: false
  5. add_column :notification_policies, :for_not_followers, :integer, default: 0, null: false
  6. add_column :notification_policies, :for_new_accounts, :integer, default: 0, null: false
  7. add_column :notification_policies, :for_private_mentions, :integer, default: 1, null: false
  8. add_column :notification_policies, :for_limited_accounts, :integer, default: 1, null: false
  9. end
  10. end