Skip to content

Commit

Permalink
[TAN-3184] Disable partial writes when creating new records
Browse files Browse the repository at this point in the history
  • Loading branch information
adessy committed Dec 19, 2024
1 parent a289003 commit 816047e
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 5 deletions.
1 change: 1 addition & 0 deletions back/config/application.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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.
#
Expand Down
5 changes: 0 additions & 5 deletions back/config/initializers/new_framework_defaults_7_0.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit 816047e

Please sign in to comment.