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

16 lines
417 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-08-06 17:50:03 +03:00
t.index %i[event_name key], unique: connection.supports_partial_index?,
where: "event_name IN ('start', 'complete')"
2025-09-15 09:10:03 +03:00
t.timestamps
end
end
end