Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Revert rails console changes

I have an application where I run rake tasks to add data from csv files. I need to test it from the console first. Is there a command in console to revert all the changes as its meant only for testing.

like image 856
JB1980 Avatar asked Nov 03 '14 12:11

JB1980


1 Answers

You need to run the console in sandbox mode.

rails c --sandbox
like image 129
mohameddiaa27 Avatar answered Oct 04 '22 21:10

mohameddiaa27