mirror of
https://github.com/Retrospring/retrospring.git
synced 2025-01-19 01:16:03 +01:00
9 lines
246 B
Ruby
9 lines
246 B
Ruby
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
|
|
add_index :totp_recovery_codes, [:user_id, :code]
|
|
end
|
|
end
|