1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00

destroy_all_in_batches is off by default for newly generated Rails apps.

Following up https://github.com/rails/rails/pull/42673#issuecomment-874744582
This commit is contained in:
Roberto Miranda 2021-07-06 19:43:44 +01:00 committed by GitHub
parent d305be0742
commit 7834a783b8
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -27,9 +27,6 @@
config.active_record.destroy_all_in_batches = true
```
The option is on by default for newly generated Rails apps. Can be set in
an initializer to prevent differences across environments.
*Genadi Samokovarov*, *Roberto Miranda*
* Adds support for `if_not_exists` to `add_foreign_key` and `if_exists` to `remove_foreign_key`.