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

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

class RemoveLimitsFromPlans < ActiveRecord::Migration[5.2]
  DOWNTIME = false

  def up
    remove_column :plans, :active_pipelines_limit
    remove_column :plans, :pipeline_size_limit
    remove_column :plans, :active_jobs_limit
  end

  def down
    add_column :plans, :active_pipelines_limit, :integer
    add_column :plans, :pipeline_size_limit, :integer
    add_column :plans, :active_jobs_limit, :integer
  end
end