Skip to content

Resolve "Convert the schema validation framework into a gem"

What does this MR do and why?

We have generated and added a new gem (gitlab-schema-validation) to the GitLab project in Schema validation gem (!124727 - merged).

In this merge request, we are adding the content to the gem.

Remember that these files are already reviewed and present in the GitLab codebase (gitlab/lib/gitlab/database/schema_validation/). We are just copying the files to the gitlab-schema-validation gem folder.

Note: we had to convert some methods from rails to ruby since this is a ruby gem (e.g. .present).

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.

Related to #390856 (closed)

Edited by Diogo Frazão

Merge request reports