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

Update all pipelines in single query

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