diff options
author | Prem Sichanugrist <s@sikac.hu> | 2019-03-23 16:47:26 +0900 |
---|---|---|
committer | Prem Sichanugrist <s@sikac.hu> | 2019-03-23 19:31:03 +0900 |
commit | b27105252bce6a69f6d57c05d4ea28d20e84f8ae (patch) | |
tree | 13072d72ae90d7c83597b6c832799454aba13b75 /railties/CHANGELOG.md | |
parent | efb706daad0e2e1039c6abb4879c837ef8bf4d10 (diff) | |
download | rails-b27105252bce6a69f6d57c05d4ea28d20e84f8ae.tar.gz rails-b27105252bce6a69f6d57c05d4ea28d20e84f8ae.tar.bz2 rails-b27105252bce6a69f6d57c05d4ea28d20e84f8ae.zip |
Add config.disable_sandbox option to Rails console
A long-running `rails console --sandbox` could cause a database server
to become out-of-memory as it's holding on to changes that happen on the
database.
Given that it's common for Ruby on Rails application with huge
traffic to have separate write database and read database, we should
allow the developers to disable this sandbox option to prevent someone
from accidentally causing the Denial-of-Service on their server.
Diffstat (limited to 'railties/CHANGELOG.md')
-rw-r--r-- | railties/CHANGELOG.md | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/railties/CHANGELOG.md b/railties/CHANGELOG.md index 226b949b34..1fb0a94b2d 100644 --- a/railties/CHANGELOG.md +++ b/railties/CHANGELOG.md @@ -1,3 +1,11 @@ +* Add `config.disable_sandbox` option to Rails console. + + This setting will disable `rails console --sandbox` mode, preventing + developer from accidentally starting a sandbox console, left it inactive, + and cause the database server to run out of memory. + + *Prem Sichanugrist* + * Add `-e/--environment` option to `rails initializers`. *Yuji Yaginuma* |