Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat/PSD-3829-roles_and_type_migration #3506

Merged
merged 4 commits into from
Jan 10, 2025

Conversation

alan-at-work
Copy link
Collaborator

Description

This is a large update, we are starting the transition over to use rolify for roles. So this will mean some changes to the code and DB.

If you have not done this update before you will need to simply run the following.

rails db:migrate
rails migrate_roles:migrate

If you have run it and have come into issues, you will need to checkout main and reset the DB from there.

gco main #git checkout main
rails db:reset
rails db:seed


Prod steps

Run the migration, which creates the rolify stuff, and adds a backfil to fill in the legacy roles and type, we then remove the old role field. 


rails db:migrate



We then run the task, which will take the legacy roles and tasks and make them a role(s) and assign to users.


rails migrate_roles:migrate

@alan-at-work alan-at-work force-pushed the feat/PSD-3829-roles_and_type_migration branch from d142c89 to 115c43f Compare January 3, 2025 13:17
@tahir-khalid tahir-khalid self-requested a review January 3, 2025 15:19
@alan-at-work alan-at-work force-pushed the feat/PSD-3829-roles_and_type_migration branch from 115c43f to 237b69b Compare January 9, 2025 11:58
@alan-at-work alan-at-work merged commit 1da6213 into main Jan 10, 2025
4 checks passed
@alan-at-work alan-at-work deleted the feat/PSD-3829-roles_and_type_migration branch January 10, 2025 10:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants