mirror of
https://github.com/docusealco/docuseal
synced 2026-11-06 23:12:33 -05:00
add lock events
This commit is contained in:
1 parent
86d680cfdf
commit
04e7f101be
10 files changed
+210
-15
No files matched your search
@@ -0,0 +1,14 @@
|
||||
# frozen_string_literal: true
|
||||
|
||||
class CreateLockEvents < ActiveRecord::Migration[8.0]
|
||||
def change
|
||||
create_table :lock_events do |t|
|
||||
t.string :key, index: true, null: false
|
||||
t.string :event_name, null: false
|
||||
|
||||
t.index %i[event_name key], unique: true, where: "event_name IN ('start', 'complete')"
|
||||
|
||||
t.timestamps
|
||||
end
|
||||
end
|
||||
end
|
||||
Reference in new issue
Block a user