Sha256: 5d415e1e16bfa1441b0d5614a974d22a3f6a05d5de4533d4f39c2d4ca70b9c1f
Contents?: true
Size: 822 Bytes
Versions: 5
Compression:
Stored size: 822 Bytes
Contents
class DeviseXfactorAuthenticationAddTo<%= table_name.camelize %> < ActiveRecord::Migration[7.0] def change add_column :<%= table_name %>, :second_factor_attempts_count, :integer, default: 0 add_column :<%= table_name %>, :encrypted_otp_secret_key, :string add_column :<%= table_name %>, :encrypted_otp_secret_key_iv, :string add_column :<%= table_name %>, :encrypted_otp_secret_key_salt, :string add_column :<%= table_name %>, :direct_otp, :string add_column :<%= table_name %>, :direct_otp_sent_at, :datetime add_column :<%= table_name %>, :totp_timestamp, :timestamp add_column :<%= table_name %>, :otp_secret_key, :string add_column :<%= table_name %>, :uses_two_factor, :boolean, default: false add_index :<%= table_name %>, :encrypted_otp_secret_key, unique: true end end
Version data entries
5 entries across 5 versions & 1 rubygems