Welcome to mirror list, hosted at ThFree Co, Russian Federation.

20210325113129_validate_foreign_key_on_service_hooks.rb « migrate « db - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 17dd4cad6ae4f0dd6f014394e59d266f61aace33 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
# 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