Skip to content

Commit 4e4e6bd

Browse files
Codify preference with configuration
1 parent 165cb5f commit 4e4e6bd

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

rails/README.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -81,11 +81,11 @@ Guidance on ActiveRecord, ActiveModel, and other model objects.
8181
- Use `db/seeds.rb` for data that is required in all environments.
8282
- Use `dev:prime` rake task for development environment seed data.
8383

84-
## Console
84+
## Security
8585

86-
- Access production-like [console][] sessions in "sandbox" mode: `bin/rails console --sandbox`
86+
- Set [config.sandbox_by_default][sandbox] to `true` in production-like environments to avoid accidental writing to the production database.
8787

88-
[console]: https://guides.rubyonrails.org/command_line.html#bin-rails-console
88+
[sandbox]: https://guides.rubyonrails.org/configuring.html#config-sandbox-by-default
8989

9090
## Migrations
9191

0 commit comments

Comments
 (0)