to work very hard
Examples:
- She worked her tail off all semester and finally got an A.
- We worked our tails off to finish the project before the deadline.
Origin: Dogs used to be used for working on a farm. People would say that the dog is working so hard that his tail will fall off.