21 lines
553 B
Ruby
21 lines
553 B
Ruby
# frozen_string_literal: true
|
|
|
|
class AddRemainingCiMinutesToCiPendingBuild < ActiveRecord::Migration[6.1]
|
|
include Gitlab::Database::MigrationHelpers
|
|
|
|
disable_ddl_transaction!
|
|
|
|
def up
|
|
with_lock_retries do
|
|
add_column(:ci_pending_builds, :namespace_id, :bigint)
|
|
add_column(:ci_pending_builds, :minutes_exceeded, :boolean, null: false, default: false)
|
|
end
|
|
end
|
|
|
|
def down
|
|
with_lock_retries do
|
|
remove_column(:ci_pending_builds, :minutes_exceeded)
|
|
remove_column(:ci_pending_builds, :namespace_id)
|
|
end
|
|
end
|
|
end
|