Files
docuseal/db/migrate/20250915060548_create_lock_events.rb
T

15 lines
373 B
Ruby
Raw Normal View History

2025-09-15 09:10:03 +03:00
# 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
2026-01-05 12:34:50 +02:00
t.index %i[event_name key], unique: adapter_name != 'Mysql2', where: "event_name IN ('start', 'complete')"
2025-09-15 09:10:03 +03:00
t.timestamps
end
end
end