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

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

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

  def up
    add_not_null_constraint :issues, :work_item_type_id, validate: true
  end

  def down
    remove_not_null_constraint :issues, :work_item_type_id
  end
end