使用script/console启动rails控制台和使用script/console --sandbox在沙箱模式下启动rails控制台有什么区别。
发布于 2010-07-27 12:14:17
在沙箱模式下,在控制台中所做的任何数据库更改都将在您退出控制台时恢复。
这与常规控制台不同,在常规控制台中,当您退出时,所有数据库更改都将保留。
发布于 2010-07-27 12:15:08
…run the console in a sandbox—meaning that all your database changes are completely reverted when you exit the console.
https://stackoverflow.com/questions/3340680
复制相似问题