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

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

class ChangeBuildPendingStateEnums < ActiveRecord::Migration[6.0]
  DOWNTIME = false

  def up
    change_column :ci_build_pending_states, :state, :integer, limit: 2
    change_column :ci_build_pending_states, :failure_reason, :integer, limit: 2
  end

  def down
    change_column :ci_build_pending_states, :state, :integer
    change_column :ci_build_pending_states, :failure_reason, :integer
  end
end