How Check and Fix Broken Links?

You can do search&replace via rails console, can you?