4 changed files with 39 additions and 1 deletions
@ -0,0 +1,15 @@ |
|||||||
|
class TwoFactorAuthenticationAddToUser < ActiveRecord::Migration[7.0] |
||||||
|
def change |
||||||
|
change_table :users, bulk: true do |t| |
||||||
|
t.column :second_factor_attempts_count, :integer, default: 0 |
||||||
|
t.column :encrypted_otp_secret_key, :string |
||||||
|
t.column :encrypted_otp_secret_key_iv, :string |
||||||
|
t.column :encrypted_otp_secret_key_salt, :string |
||||||
|
t.column :direct_otp, :string |
||||||
|
t.column :direct_otp_sent_at, :datetime |
||||||
|
t.column :totp_timestamp, :timestamp |
||||||
|
|
||||||
|
t.index :encrypted_otp_secret_key, unique: true |
||||||
|
end |
||||||
|
end |
||||||
|
end |
Loading…
Reference in new issue