Skip to content

Make migrations skipped in production a no-op

Marius Bobin requested to merge noop-migrations-incident-14888-2 into master

What does this MR do and why?

Make migrations skipped in production a no-op

Migrations db/post_migrate/20230524135750_replace_ci_job_artifacts_foreign_key.rb db/post_migrate/20230524135803_replace_ci_running_builds_foreign_key.rb db/post_migrate/20230524135815_replace_ci_job_variables_foreign_key.rb db/post_migrate/20230524135828_replace_p_ci_builds_metadata_foreign_key.rb db/post_migrate/20230524135840_replace_p_ci_runner_machine_builds_foreign_key.rb

were skipped in production as part of gitlab-com/gl-infra/production#14888 (closed).

Mark them as no-op so that they do not execute in other environments.

Changelog: changed

Screenshots or screen recordings

Screenshots are required for UI changes, and strongly recommended for all other merge requests.

Before After

How to set up and validate locally

Numbered steps to set up and validate the change are strongly suggested.

MR acceptance checklist

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

Merge request reports