Skip to content

Backfill project_wiki_repositories table

What does this MR do and why?

As part of #367925 (closed), we introduced a new model to track project wiki repositories in the database. This MR backfills the project_wiki_repositories table for projects that still do not have an entry in this table.

How to set up and validate locally

  1. Checkout the MR branch
    git fetch --all
    git checkout 367925-backfill-project-wiki-repositories
  2. Run the database migrations
    bundle exec rails db:migrate
  3. In a Rails console, check if the number of records in the project_wiki_repositories table matches the number of projects
    Project.count == Projects::WikiRepository.count

Migrations

MR acceptance checklist

This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.

Related issue

Related to #367925 (closed)

Edited by Douglas Barbosa Alexandre

Merge request reports