Skip to content

Implement a Rubocop cop to check db style guide

What does this MR do?

This MR introduces a new cop to check if the create table migration tries to introduce more than one foreign key at once to prevent the need of waiting for the database maintainer to comment on the violation.

Seems like this is a common mistake that can be even missed by the database maintainers since there are plenty of them already existing in the codebase.

Screenshots

Does this MR meet the acceptance criteria?

Conformity

Availability and Testing

Security

If this MR contains changes to processing or storing of credentials or tokens, authorization and authentication methods and other items described in the security review guidelines:

  • [-] Label as security and @ mention @gitlab-com/gl-security/appsec
  • [-] The MR includes necessary changes to maintain consistency between UI, API, email, or other methods
  • [-] Security reports checked/validated by a reviewer from the AppSec team
Edited by Mehmet Emin INAC

Merge request reports