summaryrefslogtreecommitdiff
path: root/db/migrate/20160425045124_create_u2f_registrations.rb
blob: 72cbe98ebba3615766cd9b4f45b30e6a6fdfe6cc (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
# rubocop:disable all
class CreateU2fRegistrations < ActiveRecord::Migration
  def change
    create_table :u2f_registrations do |t|
      t.text :certificate
      t.string :key_handle, index: true
      t.string :public_key
      t.integer :counter
      t.references :user, index: true, foreign_key: true

      t.timestamps null: false
    end
  end
end