mirror of
https://github.com/LaCasemate/fab-manager.git
synced 2024-11-29 10:24:20 +01:00
17 lines
577 B
Ruby
17 lines
577 B
Ruby
# frozen_string_literal: true
|
|
|
|
# Create notification preferences : allow user to decide which type of notifications
|
|
# they want to receive via push ('in system') or via email.
|
|
class CreateNotificationPreferences < ActiveRecord::Migration[5.2]
|
|
def change
|
|
create_table :notification_preferences do |t|
|
|
t.references :user, index: true, foreign_key: true, null: false
|
|
t.references :notification_type, index: true, foreign_key: true, null: false
|
|
t.boolean :in_system, default: true
|
|
t.boolean :email, default: true
|
|
|
|
t.timestamps
|
|
end
|
|
end
|
|
end
|