put in the pin

Etymology
From the ancient peg tankard, which was furnished with a row of pins, or pegs, to regulate the amount which each person was to drink.

Verb

 * 1)  To refrain from drinking alcohol.