“script/console” vs. “script/console --sandbox”

后端 未结 2 1425
野的像风
野的像风 2021-02-07 09:24

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.

2条回答
  •  长情又很酷
    2021-02-07 09:57

    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.

提交回复
热议问题