summaryrefslogtreecommitdiff
path: root/db/post_migrate/20221103073328_change_member_namespace_id_not_null.rb
blob: 19f6732d29771b678023a9ea3ad17ca7ce0fce50 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
# frozen_string_literal: true

# See https://docs.gitlab.com/ee/development/migration_style_guide.html
# for more information on how to write migrations for GitLab.

class ChangeMemberNamespaceIdNotNull < 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