From: Tom Hughes Date: Tue, 22 Feb 2022 19:16:10 +0000 (+0000) Subject: Disable partial inserts X-Git-Tag: live~1802 X-Git-Url: https://git.openstreetmap.org./rails.git/commitdiff_plain/172a71e3f242f74a6eb1f7bb45fb4d5f3ddff5e7?hp=-c Disable partial inserts --- 172a71e3f242f74a6eb1f7bb45fb4d5f3ddff5e7 diff --git a/config/initializers/new_framework_defaults_7_0.rb b/config/initializers/new_framework_defaults_7_0.rb index 4e16b9d49..a5edd72ff 100644 --- a/config/initializers/new_framework_defaults_7_0.rb +++ b/config/initializers/new_framework_defaults_7_0.rb @@ -70,8 +70,8 @@ Rails.application.config.active_record.verify_foreign_keys_for_fixtures = true # Disable partial inserts. # This default means that all columns will be referenced in INSERT queries # regardless of whether they have a default or not. -# Rails.application.config.active_record.partial_inserts = false -# +Rails.application.config.active_record.partial_inserts = false + # Protect from open redirect attacks in `redirect_back_or_to` and `redirect_to`. # Rails.application.config.action_controller.raise_on_open_redirects = true