blob: ff723a4793f8066c1d5f3b87dd9771f62efcf464 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
# frozen_string_literal: true
#
class ValidateU2fRegistrationsUserIdForeignKey < ActiveRecord::Migration[6.0]
include Gitlab::Database::MigrationHelpers
DOWNTIME = false
CONSTRAINT_NAME = 'fk_u2f_registrations_user_id'
def up
validate_foreign_key :u2f_registrations, :user_id, name: CONSTRAINT_NAME
end
def down
# no op
end
end
|