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

20210705144657_add_instance_runners_enabled_to_ci_pending_build.rb « migrate « db - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: b362fd930a364e00b78a49d26b91c4275baf4a08 (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 AddInstanceRunnersEnabledToCiPendingBuild < ActiveRecord::Migration[6.1]
  include Gitlab::Database::MigrationHelpers

  disable_ddl_transaction!

  def up
    with_lock_retries do
      add_column :ci_pending_builds, :instance_runners_enabled, :boolean, null: false, default: false
    end
  end

  def down
    with_lock_retries do
      remove_column :ci_pending_builds, :instance_runners_enabled
    end
  end
end