mirror of
https://git.kescher.at/CatCatNya/catstodon.git
synced 2024-11-25 05:08:07 +01:00
16 lines
547 B
Ruby
16 lines
547 B
Ruby
|
# frozen_string_literal: true
|
||
|
|
||
|
class CreateNotificationPolicies < ActiveRecord::Migration[7.1]
|
||
|
def change
|
||
|
create_table :notification_policies do |t|
|
||
|
t.references :account, null: false, foreign_key: true, index: { unique: true }
|
||
|
t.boolean :filter_not_following, null: false, default: false
|
||
|
t.boolean :filter_not_followers, null: false, default: false
|
||
|
t.boolean :filter_new_accounts, null: false, default: false
|
||
|
t.boolean :filter_private_mentions, null: false, default: true
|
||
|
|
||
|
t.timestamps
|
||
|
end
|
||
|
end
|
||
|
end
|