Commit 6075a932 authored by Matija Čupić's avatar Matija Čupić

Update all pipelines in single query

parent 2122a770
......@@ -34,9 +34,8 @@ module Gitlab
end
def perform(start_id, stop_id)
external_pipelines(start_id, stop_id).each do |pipeline|
pipeline.update_attribute(:source, Migratable::Pipeline.sources[:external])
end
external_pipelines(start_id, stop_id)
.update_all(:source, Migratable::Pipeline.sources[:external])
end
private
......
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