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

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

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

  def up
    add_column(:plan_limits, :id, :primary_key) unless column_exists?(:plan_limits, :id)
  end

  def down
    remove_column(:plan_limits, :id)
  end
end