mirror of
https://github.com/docusealco/docuseal.git
synced 2026-06-23 04:10:11 +00:00
26 lines
716 B
Ruby
26 lines
716 B
Ruby
# frozen_string_literal: true
|
|
|
|
# == Schema Information
|
|
#
|
|
# Table name: lock_events
|
|
#
|
|
# id :bigint not null, primary key
|
|
# event_name :string not null
|
|
# key :string not null
|
|
# created_at :datetime not null
|
|
# updated_at :datetime not null
|
|
#
|
|
# Indexes
|
|
#
|
|
# index_lock_events_on_event_name_and_key (event_name,key) UNIQUE WHERE ((event_name)::text = ANY (ARRAY[('start'::character varying)::text, ('complete'::character varying)::text]))
|
|
# index_lock_events_on_key (key)
|
|
#
|
|
class LockEvent < ApplicationRecord
|
|
enum :event_name, {
|
|
complete: 'complete',
|
|
fail: 'fail',
|
|
start: 'start',
|
|
retry: 'retry'
|
|
}, scope: false
|
|
end
|