Running Rails console on heroku, in sandbox mode

console, heroku, ruby-on-rails

Solution

For a more "the Heroku way" alternative, `heroku run console --sandbox` does the trick as well:

$ heroku run console --sandbox
Running `console --sandbox` attached to terminal... up, run.6024

[...]

Loading production environment in sandbox (Rails 3.2.12)
Any modifications you make will be rolled back on exit
irb(main):001:0>

Problem

Couldn't find it in the docs, nor on SO, but is there a way to run the Rails (3.2.x) console in sandbox mode on heroku (Celadon Cedar), equivalent to ``` rails console --sandbox ```

Original source