summaryrefslogtreecommitdiff
path: root/db/post_migrate
diff options
context:
space:
mode:
authorGrzegorz Bizon <grzesiek.bizon@gmail.com>2018-01-06 14:21:45 +0100
committerGrzegorz Bizon <grzesiek.bizon@gmail.com>2018-01-06 14:21:45 +0100
commit1ab0ffe3830340c0c9c2def74f59c95a44bcf9f7 (patch)
treedb166c4176f51bb8c61061771f4fe3821af65d85 /db/post_migrate
parentb50270a54efaa448e06018ad9a824ef4a512da31 (diff)
downloadgitlab-ce-1ab0ffe3830340c0c9c2def74f59c95a44bcf9f7.tar.gz
Update background stages migration timestamp
Diffstat (limited to 'db/post_migrate')
-rw-r--r--db/post_migrate/20180105101928_schedule_build_stage_migration.rb (renamed from db/post_migrate/20171205101928_schedule_build_stage_migration.rb)2
1 files changed, 1 insertions, 1 deletions
diff --git a/db/post_migrate/20171205101928_schedule_build_stage_migration.rb b/db/post_migrate/20180105101928_schedule_build_stage_migration.rb
index 60293c60e8e..3d7f6278244 100644
--- a/db/post_migrate/20171205101928_schedule_build_stage_migration.rb
+++ b/db/post_migrate/20180105101928_schedule_build_stage_migration.rb
@@ -13,7 +13,7 @@ class ScheduleBuildStageMigration < ActiveRecord::Migration
def change
Build.where('stage_id IS NULL').each_batch(of: BATCH) do |builds, index|
builds.pluck(:id).map { |id| [MIGRATION, [id]] }.tap do |migrations|
- BackgroundMigrationWorker.perform_bulk_in(index.minutes, migrations)
+ BackgroundMigrationWorker.bulk_perform_in(index.minutes, migrations)
end
end
end