fixed migrate
Merge branch 'feature/add_state_machine-45' into staging