diff --git a/back/config/application.rb b/back/config/application.rb index 399143dd1504..22e64cd7b143 100644 --- a/back/config/application.rb +++ b/back/config/application.rb @@ -35,6 +35,7 @@ class Application < Rails::Application # TODO: Delete the following settings once we move to config.load_defaults 7.0 config.active_support.disable_to_s_conversion = true config.active_support.cache_format_version = 7.0 + config.active_record.partial_inserts = false # Configuration for the application, engines, and railties goes here. # diff --git a/back/config/initializers/new_framework_defaults_7_0.rb b/back/config/initializers/new_framework_defaults_7_0.rb index 9bd536aa25e0..ac9ade0c20b6 100644 --- a/back/config/initializers/new_framework_defaults_7_0.rb +++ b/back/config/initializers/new_framework_defaults_7_0.rb @@ -56,11 +56,6 @@ # Raise when running tests if fixtures contained foreign key violations 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 - # Protect from open redirect attacks in `redirect_back_or_to` and `redirect_to`. Rails.application.config.action_controller.raise_on_open_redirects = true