add notifications settings

This commit is contained in:
Alex Turchyn committed 2023-09-18 11:42:54 +03:00
1 parent 41d3eaf582
commit 2f74caf16a
19 files changed
+156 -7

No files matched your search

+2
View File
@@ -25,6 +25,7 @@
#
class SubmissionEvent < ApplicationRecord
belongs_to :submission
has_one :account, through: :submission
belongs_to :submitter, optional: true
attribute :data, :string, default: -> { {} }
@@ -36,6 +37,7 @@ class SubmissionEvent < ApplicationRecord
enum :event_type, {
send_email: 'send_email',
send_reminder_email: 'send_reminder_email',
send_sms: 'send_sms',
open_email: 'open_email',
click_email: 'click_email',