Files
docuseal/db/migrate/20250915060548_create_lock_events.rb
2026-08-06 17:50:03 +03:00

16 lines
417 B
Ruby

# 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: connection.supports_partial_index?,
where: "event_name IN ('start', 'complete')"
t.timestamps
end
end
end