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

20230629113029_validate_fk_ml_candidates_on_user_id.rb « migrate « db - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: dce7f8eeb471059674bed62259ed693aa31fccd5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
# frozen_string_literal: true

class ValidateFkMlCandidatesOnUserId < Gitlab::Database::Migration[2.1]
  NEW_CONSTRAINT_NAME = 'fk_ml_candidates_on_user_id'

  def up
    validate_foreign_key(:ml_candidates, :user_id, name: NEW_CONSTRAINT_NAME)
  end

  def down
    # no-op
  end
end