2016-06-16 23:09:34 +05:30
|
|
|
# rubocop:disable all
|
2018-12-23 12:14:25 +05:30
|
|
|
class CreateU2fRegistrations < ActiveRecord::Migration[4.2]
|
2016-06-16 23:09:34 +05:30
|
|
|
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
|