Remove and prevent releases with a NULL tag
What does this MR do and why?
Removes releases with NULL tags and adds a NULL constraint to keep this from happening again
This currently deletes 155 rows on production, 0 on staging
Screenshots or screen recordings
These are strongly recommended to assist reviewers and reduce the time to merge your change.
How to set up and validate locally
Execute these in the rails console
- Note the number of releases for a group
Release.count
- Create a release with a NULL tag
Release.new(author: User.first, project: Project.first, tag: nil).save(validate: false)
- Run the migrations
- Note the number of releases is the same as in step 1 (or lower) `Release.count
MR acceptance checklist
This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.
-
I have evaluated the MR acceptance checklist for this MR.
Related to #31869 (closed)
Edited by Allen Cook