“脚本/控制台"与“脚本/控制台 --sandbox" [英] "script/console" vs. "script/console --sandbox"

查看:66
本文介绍了“脚本/控制台"与“脚本/控制台 --sandbox"的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

使用 script/console 启动 rails 控制台和使用 script/console --sandbox 在沙盒模式下启动 rails 控制台有什么区别.

What's the difference between just firing up a rails console with script/console and a rails console in sandbox mode with script/console --sandbox.

推荐答案

在沙盒模式下,在控制台中所做的任何数据库更改将在您退出控制台时恢复.

In sandbox mode, any database changes made while in the console will be reverted when you exit the console.

这与常规控制台不同,在常规控制台退出时,所有数据库更改都将保留.

This is different to the regular console where all database changes will remain when you exit.

这篇关于“脚本/控制台"与“脚本/控制台 --sandbox"的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆