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

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

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

  def up
    add_not_null_constraint :members, :member_namespace_id, validate: false
  end

  def down
    remove_not_null_constraint :members, :member_namespace_id
  end
end