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

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

class ValidateRequirementsIssueIdNotNull < Gitlab::Database::Migration[2.0]
  disable_ddl_transaction!

  def up
    constraint_name = 'check_requirement_issue_not_null'

    validate_not_null_constraint(:requirements, :issue_id, constraint_name: constraint_name)
  end

  def down
    # No op
  end
end