A switch lever on the ratchet head provides a convenient way to change the direction as required.
eBay