debian-mirror-gitlab/db/migrate/20200408154533_validate_protected_branch_push_access_levels_user_id_foreign_key.rb
2020-04-22 19:07:51 +05:30

17 lines
403 B
Ruby

# frozen_string_literal: true
class ValidateProtectedBranchPushAccessLevelsUserIdForeignKey < ActiveRecord::Migration[6.0]
include Gitlab::Database::MigrationHelpers
DOWNTIME = false
CONSTRAINT_NAME = 'fk_protected_branch_push_access_levels_user_id'
def up
validate_foreign_key :protected_branch_push_access_levels, :user_id, name: CONSTRAINT_NAME
end
def down
# no op
end
end