Welcome to mirror list, hosted at ThFree Co, Russian Federation.

20231207221036_finalize_backfill_root_storage_statistics_fork_storage_sizes.rb « post_migrate « db - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 0284e4bd8b92acabb9cb1733f91011be10f00f6e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
# frozen_string_literal: true

class FinalizeBackfillRootStorageStatisticsForkStorageSizes < Gitlab::Database::Migration[2.2]
  milestone '16.7'

  disable_ddl_transaction!

  restrict_gitlab_migration gitlab_schema: :gitlab_main

  def up
    ensure_batched_background_migration_is_finished(
      job_class_name: 'BackfillRootStorageStatisticsForkStorageSizes',
      table_name: :namespace_root_storage_statistics,
      column_name: :namespace_id,
      job_arguments: [],
      finalize: true
    )
  end

  def down; end
end