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

20220326163653_add_not_null_contraint_to_project_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: 2273b84d00357d550f74550d631ee4aba9c08b5c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
# frozen_string_literal: true

class AddNotNullContraintToProjectNamespaceId < Gitlab::Database::Migration[1.0]
  disable_ddl_transaction!

  def up
    add_not_null_constraint :projects, :project_namespace_id, validate: false
  end

  def down
    remove_not_null_constraint :projects, :project_namespace_id
  end
end