mirror of
https://github.com/docusealco/docuseal
synced 2026-11-05 06:42:32 -05:00
add email events
This commit is contained in:
1 parent
db302858c4
commit
cdda55d528
9 files changed
+151
-1
No files matched your search
@@ -0,0 +1,17 @@
|
||||
# frozen_string_literal: true
|
||||
|
||||
class CreateEmailEvents < ActiveRecord::Migration[7.1]
|
||||
def change
|
||||
create_table :email_events do |t|
|
||||
t.references :account, null: false, foreign_key: true, index: true
|
||||
t.references :emailable, polymorphic: true, index: true, null: false
|
||||
t.string :message_id, null: false, index: true
|
||||
t.string :tag, null: false
|
||||
t.string :event_type, null: false
|
||||
t.string :email, null: false
|
||||
t.text :data, null: false
|
||||
t.datetime :event_datetime, null: false
|
||||
t.datetime :created_at, null: false
|
||||
end
|
||||
end
|
||||
end
|
||||
Reference in new issue
Block a user