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

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

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

  CONSTRAINT_NAME = 'check_508774aac0'

  def up
    validate_not_null_constraint :members, :member_namespace_id, constraint_name: CONSTRAINT_NAME
  end

  def down
    # no-op
  end
end