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

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

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

  def up
    add_not_null_constraint :releases, :tag, constraint_name: 'releases_not_null_tag', validate: false
  end

  def down
    remove_not_null_constraint :releases, :tag, constraint_name: 'releases_not_null_tag'
  end
end