If you end up pasting lots of lines into a rails console on Heroku (or else where), you might get issues with the lines "bleeding" into each other.
Next time this happens, try disabling multiline:
$ heroku run 'bundle exec rails console -- --nomultiline'