chore(super-admin): update devise-two-factor v5 with otp_secret encrypted attribute
This commit is contained in:
parent
eb88c5e9de
commit
6616acb825
3 changed files with 80 additions and 1 deletions
|
@ -0,0 +1,5 @@
|
|||
class AddOtpSecretToSuperAdmin < ActiveRecord::Migration[7.0]
|
||||
def change
|
||||
add_column :super_admins, :otp_secret, :string
|
||||
end
|
||||
end
|
|
@ -10,7 +10,7 @@
|
|||
#
|
||||
# It's strongly recommended that you check this file into your version control system.
|
||||
|
||||
ActiveRecord::Schema[7.0].define(version: 2023_03_31_125931) do
|
||||
ActiveRecord::Schema[7.0].define(version: 2023_05_02_160046) do
|
||||
# These are extensions that must be enabled in order to support this database
|
||||
enable_extension "pgcrypto"
|
||||
enable_extension "plpgsql"
|
||||
|
@ -843,6 +843,7 @@ ActiveRecord::Schema[7.0].define(version: 2023_03_31_125931) do
|
|||
t.boolean "otp_required_for_login"
|
||||
t.datetime "remember_created_at", precision: 6
|
||||
t.datetime "reset_password_sent_at", precision: 6
|
||||
t.string "otp_secret"
|
||||
t.string "reset_password_token"
|
||||
t.integer "sign_in_count", default: 0, null: false
|
||||
t.string "unlock_token"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue