What is the origin of the phrase on the rocks?

"on the rocks"