chore(super-admin): update devise-two-factor v5 with otp_secret encrypted attribute

This commit is contained in:
Colin Darie 2023-05-02 18:18:11 +02:00
parent eb88c5e9de
commit 6616acb825
No known key found for this signature in database
GPG key ID: 4FB865FDBCA4BCC4
3 changed files with 80 additions and 1 deletions

View file

@ -0,0 +1,5 @@
class AddOtpSecretToSuperAdmin < ActiveRecord::Migration[7.0]
def change
add_column :super_admins, :otp_secret, :string
end
end

View file

@ -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"