gitlab-org--gitlab-foss/db/migrate/20210325113129_validate_for...

18 lines
325 B
Ruby

# frozen_string_literal: true
class ValidateForeignKeyOnServiceHooks < ActiveRecord::Migration[6.0]
include Gitlab::Database::MigrationHelpers
DOWNTIME = false
CONSTRAINT_NAME = 'fk_d47999a98a'
def up
validate_foreign_key :web_hooks, :service_id, name: CONSTRAINT_NAME
end
def down
# no-op
end
end