mirror of
https://github.com/docusealco/docuseal
synced 2026-11-06 06:52:33 -05:00
synchronize documents generation
This commit is contained in:
1 parent
e55b5b47cd
commit
4180d02a1b
15 files changed
+148
-12
No files matched your search
@@ -0,0 +1,14 @@
|
||||
# frozen_string_literal: true
|
||||
|
||||
class CreateDocumentGenerationEvents < ActiveRecord::Migration[7.0]
|
||||
def change
|
||||
create_table :document_generation_events do |t|
|
||||
t.references :submitter, null: false, foreign_key: true, index: true
|
||||
t.string :event_name, null: false
|
||||
|
||||
t.index %i[submitter_id event_name], unique: true, where: "event_name IN ('start', 'complete')"
|
||||
|
||||
t.timestamps
|
||||
end
|
||||
end
|
||||
end
|
||||
Reference in new issue
Block a user