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

后端 未结 2 1426
野的像风
野的像风 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:46

    …run the console in a sandbox—meaning that all your database changes are completely reverted when you exit the console.

    0 讨论(0)
  • 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.

    0 讨论(0)
提交回复
热议问题