20200630190240_create_webauthn_credentials.rb 418 B

12345678910111213141516
  1. class CreateWebauthnCredentials < ActiveRecord::Migration[5.2]
  2. def change
  3. create_table :webauthn_credentials do |t|
  4. t.string :external_id, null: false
  5. t.string :public_key, null: false
  6. t.string :nickname, null: false
  7. t.bigint :sign_count, null: false, default: 0
  8. t.index :external_id, unique: true
  9. t.references :user, foreign_key: true
  10. t.timestamps
  11. end
  12. end
  13. end