Skip to content

Conversation

@rluodev
Copy link
Contributor

@rluodev rluodev commented Oct 12, 2025

Summary of the problem

Centralizing the columns!

Describe your changes

Migrating data from current "deposited?" method into "aasm_state"'s "deposited_v2" state.

@rluodev rluodev requested a review from garyhtou October 12, 2025 21:58
@rluodev rluodev self-assigned this Oct 12, 2025
@rluodev rluodev requested a review from a team as a code owner October 12, 2025 21:58
@rluodev rluodev linked an issue Oct 12, 2025 that may be closed by this pull request
Copy link
Member

@sampoder sampoder left a 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?

Copy link
Member

@garyhtou garyhtou left a 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

Copy link
Member

@garyhtou garyhtou left a 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:

  1. Transition newly deposited invoices to deposited_v2
  2. Change all reads to use a method that considers both deposited? method and the deposited_v2 AASM state

After, we can then do this data migration.

@rluodev rluodev requested a review from a team as a code owner October 17, 2025 01:32
Copy link
Contributor

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?

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.

Invoice: Fix state management

4 participants