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!
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
rails c -s
. –
Leveroni © 2022 - 2024 — McMap. All rights reserved.