Set missing stages on ci builds to 'test' to avoid regressions in the pipelines view
This commit is contained in:
parent
699badabc9
commit
bcecc19571
1 changed files with 9 additions and 0 deletions
|
@ -0,0 +1,9 @@
|
||||||
|
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
|
Loading…
Reference in a new issue