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

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

class RemoveNamespaceSettingsCohortFreeUserCapColumns < Gitlab::Database::Migration[2.0]
  enable_lock_retries!

  def up
    remove_column :namespace_settings, :exclude_from_free_user_cap
    remove_column :namespace_settings, :include_for_free_user_cap_preview
  end

  def down
    add_column :namespace_settings, :exclude_from_free_user_cap, :boolean, null: false, default: false
    add_column :namespace_settings, :include_for_free_user_cap_preview, :boolean, null: false, default: false
  end
end