Retrospring/db/migrate/20201101155648_create_totp_...

10 lines
246 B
Ruby
Raw Normal View History

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
add_index :totp_recovery_codes, [:user_id, :code]
end
end