mirror of
https://github.com/docusealco/docuseal
synced 2026-11-04 06:42:32 -05:00
18 lines
474 B
Ruby
18 lines
474 B
Ruby
# frozen_string_literal: true
|
|
|
|
class CreateOtpChallenges < ActiveRecord::Migration[8.1]
|
|
def change
|
|
create_table :otp_challenges do |t|
|
|
t.string :key, null: false
|
|
t.integer :version, null: false
|
|
t.string :nonce, null: false
|
|
t.integer :attempts, null: false, default: 0
|
|
t.datetime :expire_at, null: false
|
|
t.datetime :verified_at
|
|
t.datetime :created_at, null: false
|
|
|
|
t.index %i[key version], unique: true
|
|
end
|
|
end
|
|
end
|