2023-10-19 16:37:34 -07:00
|
|
|
# frozen_string_literal: true
|
|
|
|
|
2020-11-01 08:55:31 -08:00
|
|
|
class CreateTotpRecoveryCodes < ActiveRecord::Migration[5.2]
|
|
|
|
def change
|
|
|
|
create_table :totp_recovery_codes do |t|
|
|
|
|
t.bigint :user_id
|
|
|
|
t.string :code, limit: 8
|
|
|
|
end
|
2023-10-19 16:37:34 -07:00
|
|
|
add_index :totp_recovery_codes, %i[user_id code]
|
2020-11-01 08:55:31 -08:00
|
|
|
end
|
|
|
|
end
|