func (p Phase) CanTransitionTo(targetPhase Phase) bool {
	nextPhases, exists := validTransitions[p]
	if !exists {
		return false
	}
	for _, nextPhase := range nextPhases {
		if nextPhase == targetPhase {
			return true
		}
	}
	return false
}
// CanTransitionTo returns true if the given phase is a valid next
// model migration phase.
CanTransitionTo returns true if the given phase is a valid next
model migration phase.
// CanTransitionTo returns true if the given phase is a valid next // model migration phase .
func (p Phase) CanTransitionTo(targetPhase Phase) bool {
	nextPhases, exists := validTransitions[p]
	if !exists {
		return false
	}
	for _, nextPhase := range nextPhases {
		if nextPhase == targetPhase {
			return true
		}
	}
	return false
}
func ( p Phase ) CanTransitionTo ( targetPhase Phase ) bool { nextPhases , exists := validTransitions [ p ] if ! exists { return false } for _ , nextPhase := range nextPhases { if nextPhase == targetPhase { return true } } return false }
CanTransitionTo returns true if the given phase is a valid next
model migration phase.
CanTransitionTo returns true if the given phase is a valid next model migration phase .