Class: Gitlab::BackgroundMigration::BackfillProjectRepositories

Inherits:
Object
  • Object
show all
Defined in:
lib/gitlab/background_migration/backfill_project_repositories.rb

Overview

Class that will create fill the project_repositories table for projects an entry is is missing in this table.

Defined Under Namespace

Modules: Routable, Storage Classes: Namespace, Project, ProjectRepository, Route, Shard, ShardFinder

Constant Summary collapse

OrphanedNamespaceError =
Class.new(StandardError)

Instance Method Summary collapse

Instance Method Details

#perform(start_id, stop_id) ⇒ Object



191
192
193
# File 'lib/gitlab/background_migration/backfill_project_repositories.rb', line 191

def perform(start_id, stop_id)
  ApplicationRecord.legacy_bulk_insert(:project_repositories, project_repositories(start_id, stop_id)) # rubocop:disable Gitlab/BulkInsert
end