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

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

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

  CONSTRAINT_NAME = 'check_508774aac0'

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

  def down
    add_not_null_constraint :members, :member_namespace_id, validate: false, constraint_name: CONSTRAINT_NAME
  end
end