20240222203722_create_notification_policies.rb 547 B

123456789101112131415
  1. # frozen_string_literal: true
  2. class CreateNotificationPolicies < ActiveRecord::Migration[7.1]
  3. def change
  4. create_table :notification_policies do |t|
  5. t.references :account, null: false, foreign_key: true, index: { unique: true }
  6. t.boolean :filter_not_following, null: false, default: false
  7. t.boolean :filter_not_followers, null: false, default: false
  8. t.boolean :filter_new_accounts, null: false, default: false
  9. t.boolean :filter_private_mentions, null: false, default: true
  10. t.timestamps
  11. end
  12. end
  13. end