You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
17 lines
418 B
17 lines
418 B
4 years ago
|
class CreateWebauthnCredentials < ActiveRecord::Migration[5.2]
|
||
|
def change
|
||
|
create_table :webauthn_credentials do |t|
|
||
|
t.string :external_id, null: false
|
||
|
t.string :public_key, null: false
|
||
|
t.string :nickname, null: false
|
||
|
t.bigint :sign_count, null: false, default: 0
|
||
|
|
||
|
t.index :external_id, unique: true
|
||
|
|
||
|
t.references :user, foreign_key: true
|
||
|
|
||
|
t.timestamps
|
||
|
end
|
||
|
end
|
||
|
end
|