-
Notifications
You must be signed in to change notification settings - Fork 67
[Invoices] Move deposited invoices into a state in aasm #11847
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
base: main
Are you sure you want to change the base?
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is this ready for review?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please use a one time job for data modifications instead of using a migration
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We also need to update the code first to:
- Transition newly deposited invoices to
deposited_v2 - Change all reads to use a method that considers both
deposited?method and thedeposited_v2AASM state
After, we can then do this data migration.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should this file be deleted?
Summary of the problem
Centralizing the columns!
Describe your changes
Migrating data from current "deposited?" method into "aasm_state"'s "deposited_v2" state.