blob: 9a57c424592897548d9d63847b18243cdccc930a (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
|
# frozen_string_literal: true
class DropU2fRegistrationsTable < Gitlab::Database::Migration[2.1]
enable_lock_retries!
def up
drop_table :u2f_registrations
end
def down
create_table :u2f_registrations do |t| # rubocop: disable Migration/SchemaAdditionMethodsNoPost
t.text :certificate
t.string :key_handle
t.string :public_key
t.integer :counter
t.references :user, foreign_key: false
t.datetime_with_timezone :created_at, null: false
t.datetime_with_timezone :updated_at, null: false
t.string :name
t.index [:key_handle], name: 'index_u2f_registrations_on_key_handle'
end
end
end
|