blob: bd0463886bc0a46bae6d07837cbe048f3f9d40e8 (
plain)
1
2
3
4
5
6
7
8
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
|