Update background stages migration timestamp

This commit is contained in:
Grzegorz Bizon 2018-01-06 14:21:45 +01:00
parent b50270a54e
commit 1ab0ffe383
4 changed files with 4 additions and 4 deletions

View File

@ -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

View File

@ -11,7 +11,7 @@
#
# It's strongly recommended that you check this file into your version control system.
ActiveRecord::Schema.define(version: 20171230123729) do
ActiveRecord::Schema.define(version: 20180105101928) do
# These are extensions that must be enabled in order to support this database
enable_extension "plpgsql"

View File

@ -1,6 +1,6 @@
require 'spec_helper'
describe Gitlab::BackgroundMigration::MigrateBuildStage, :migration, schema: 20171205101928 do
describe Gitlab::BackgroundMigration::MigrateBuildStage, :migration, schema: 20180105101928 do
let(:projects) { table(:projects) }
let(:pipelines) { table(:ci_pipelines) }
let(:stages) { table(:ci_stages) }

View File

@ -1,5 +1,5 @@
require 'spec_helper'
require Rails.root.join('db', 'post_migrate', '20171205101928_schedule_build_stage_migration')
require Rails.root.join('db', 'post_migrate', '20180105101928_schedule_build_stage_migration')
describe ScheduleBuildStageMigration, :migration do
let(:projects) { table(:projects) }