Open leandrofinger opened 2 years ago
At least what I know:
state_machine.last_transition.destroy
; please make sure you have after_destroy :update_most_recent, if: :most_recent?
code, which updates the previous most recent transition's row value most_recent
to true
.
Hi guys!
After transitioning and depending on the record I should run an integration call and depending on this response I need rollback the last transition. Is there an easy way to do that, or should I allow the transition backward and transition it again?