ride on a rail
To be punished harshly, often publicly, and perhaps culminating in exile. The phrase originally referred to a punishment in which a wrongdoer was paraded around town on a rail and then exiled. Now that this scandal is public knowledge, I'm afraid that I'm going to ride on a rail before it's all over.