Skip to content

Add severity_levels column into approval_project_rules table

What does this MR do?

Add severity_levels column into approval_project_rules table.

Follow-up MR with validation and usage: !67064 (merged)

Related issue: #335333 (closed)

bundle exec rails db:migrate VERSION=20210726202748

== 20210726202748 AddVulnerabilitySeveritiesIntoApprovalProjectRules: migrating
-- add_column(:approval_project_rules, :severity_levels, :text, {:array=>true})
   -> 0.0026s
== 20210726202748 AddVulnerabilitySeveritiesIntoApprovalProjectRules: migrated (0.0027s)

bundle exec rails db:rollback VERSION=20210726202748

== 20210726202748 AddVulnerabilitySeveritiesIntoApprovalProjectRules: reverting
-- remove_column(:approval_project_rules, :severity_levels)
   -> 0.0022s
== 20210726202748 AddVulnerabilitySeveritiesIntoApprovalProjectRules: reverted (0.0023s)

Screenshots or Screencasts (strongly suggested)

How to setup and validate locally (strongly suggested)

Does this MR meet the acceptance criteria?

Conformity

Availability and Testing

Security

Does this MR contain changes to processing or storing of credentials or tokens, authorization and authentication methods or other items described in the security review guidelines? If not, then delete this Security section.

  • 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 Zamir Martins

Merge request reports