BigW Consortium Gitlab

Commit bcecc195 by Alejandro Rodríguez

Set missing stages on ci builds to 'test' to avoid regressions in the pipelines view

parent 699badab
class SetMissingStageOnCiBuilds < ActiveRecord::Migration
include Gitlab::Database::MigrationHelpers
def up
update_column_in_batches(:ci_builds, :stage, :test) do |table, query|
query.where(table[:stage].eq(nil))
end
end
end
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment