Changed valid_transition? to validates_machine_type