wwh, MW gives a different definition:

Etymology: perhaps from the now defunct Gandy Manufacturing Company, Chicago, Illinois, which made tools used by railroad laborers
1 : a laborer in a railroad section gang
2 : an itinerant or seasonal laborer