gitlab-org--gitlab-foss/db/migrate/20200527211605_add_locked_to_ci_pipelines.rb

20 lines
388 B
Ruby
Raw Normal View History

# frozen_string_literal: true
class AddLockedToCiPipelines < ActiveRecord::Migration[6.0]
include Gitlab::Database::MigrationHelpers
DOWNTIME = false
def up
with_lock_retries do
add_column :ci_pipelines, :locked, :integer, limit: 2, null: false, default: 0
end
end
def down
with_lock_retries do
remove_column :ci_pipelines, :locked
end
end
end