mirror of
https://github.com/docusealco/docuseal
synced 2026-11-08 23:42:32 -05:00
refactor otp
This commit is contained in:
1 parent
a847e7aa9c
commit
e187644716
9 files changed
+121
-37
No files matched your search
@@ -0,0 +1,17 @@
|
||||
# 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
|
||||
Reference in new issue
Block a user