Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Running Rails console on heroku, in sandbox mode

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
like image 333
Marius Butuc Avatar asked Mar 20 '13 15:03

Marius Butuc


1 Answers

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>
like image 105
Marius Butuc Avatar answered Nov 07 '22 15:11

Marius Butuc