mirror of
https://github.com/docusealco/docuseal
synced 2026-11-04 06:42:32 -05:00
fix mysql migration
This commit is contained in:
1 parent
9eed2fc2ef
commit
e0ec443e10
1 file changed
+1
-1
@@ -6,7 +6,7 @@ class CreateLockEvents < ActiveRecord::Migration[8.0]
|
||||
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.index %i[event_name key], unique: adapter_name != 'Mysql2', where: "event_name IN ('start', 'complete')"
|
||||
|
||||
t.timestamps
|
||||
end
|
||||
|
||||
Reference in new issue
Block a user