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