diff options
Diffstat (limited to 'lib/gitlab/background_migration/populate_external_pipeline_source.rb')
-rw-r--r-- | lib/gitlab/background_migration/populate_external_pipeline_source.rb | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/lib/gitlab/background_migration/populate_external_pipeline_source.rb b/lib/gitlab/background_migration/populate_external_pipeline_source.rb index c2686d5fd27..f635064cac5 100644 --- a/lib/gitlab/background_migration/populate_external_pipeline_source.rb +++ b/lib/gitlab/background_migration/populate_external_pipeline_source.rb @@ -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 |