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

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

class ChangeUserTypeNull < Gitlab::Database::Migration[2.1]
  disable_ddl_transaction!

  def up
    add_not_null_constraint :users, :user_type, validate: false
  end

  def down
    remove_not_null_constraint :users, :user_type
  end
end