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

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

class AddGenericPackageDuplicateSettingsToNamespacePackageSettings < ActiveRecord::Migration[6.0]
  # rubocop:disable Migration/AddLimitToTextColumns
  # limit is added in 20210429193106_add_text_limit_to_namespace_package_settings_generic_duplicate_exception_regex
  def change
    add_column :namespace_package_settings, :generic_duplicates_allowed, :boolean, null: false, default: true
    add_column :namespace_package_settings, :generic_duplicate_exception_regex, :text, null: false, default: ''
  end
  # rubocop:enable Migration/AddLimitToTextColumns
end