Fix down migration
What does this MR do and why?
This MR fixes a down migration #433984 (comment 1684951470).
How to set up and validate locally
On master
:
- Run
bundle exec rake db:migrate:down:main VERSION=20230222161954
- Open
psql
:gdk psql
- In
psql
, type:\d jira_tracker_data
You'll still see a constraint: "check_4cc5bbc801" CHECK (char_length(jira_issue_prefix) <= 255)
.
When we do the same steps on this branch, the constraint is gone:
- Check out this branch.
- Run migrations forward again:
bundle exec rake db:migrate
. - Run
bundle exec rake db:migrate:down:main VERSION=20230222161954
- Open
psql
:gdk psql
- In
psql
, type:\d jira_tracker_data
You won't see the constraint now.
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 #433984 (closed)