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

20220421144758_change_dotenv_plan_limits_for_old_plans.rb « migrate « db - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: a4dede974e27ce0feccac8b75c38a8156e94c7c2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
# frozen_string_literal: true

class ChangeDotenvPlanLimitsForOldPlans < Gitlab::Database::Migration[2.0]
  restrict_gitlab_migration gitlab_schema: :gitlab_main

  def up
    create_or_update_plan_limit('dotenv_variables', 'early_adopter', 50)
    create_or_update_plan_limit('dotenv_variables', 'bronze', 50)
    create_or_update_plan_limit('dotenv_variables', 'silver', 100)
    create_or_update_plan_limit('dotenv_variables', 'gold', 150)
  end

  def down
    create_or_update_plan_limit('dotenv_variables', 'early_adopter', 20)
    create_or_update_plan_limit('dotenv_variables', 'bronze', 20)
    create_or_update_plan_limit('dotenv_variables', 'silver', 20)
    create_or_update_plan_limit('dotenv_variables', 'gold', 20)
  end
end