I'm used to interrogating my rails db via script/console
.
But in some instances I need to be exceptionally careful about not changing data, so I'd like to be able to open the console in a read-only mode.
Is there any way to do this?
Thanks!
See this question
Can I specify in database.yml that a rails environment should have readonly access to the DB?
script/console --sandbox
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With