debian-mirror-gitlab/db/migrate/20210325113129_validate_foreign_key_on_service_hooks.rb
2021-04-29 21:17:54 +05:30

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