debian-mirror-gitlab/db/migrate/20160425045124_create_u2f_registrations.rb
2019-02-15 15:39:39 +05:30

14 lines
363 B
Ruby

# rubocop:disable all
class CreateU2fRegistrations < ActiveRecord::Migration[4.2]
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