From: Tom Hughes Date: Mon, 21 Feb 2022 18:40:30 +0000 (+0000) Subject: Enable verification of foreign keys in tests X-Git-Tag: live~2194 X-Git-Url: https://git.openstreetmap.org./rails.git/commitdiff_plain/04cb32b140743fe77885da1eec243a4e192b70fc Enable verification of foreign keys in tests --- diff --git a/config/initializers/new_framework_defaults_7_0.rb b/config/initializers/new_framework_defaults_7_0.rb index ccf2fcd11..e7aff2cfe 100644 --- a/config/initializers/new_framework_defaults_7_0.rb +++ b/config/initializers/new_framework_defaults_7_0.rb @@ -65,7 +65,7 @@ Rails.application.config.active_storage.video_preview_arguments = # Rails.application.config.active_record.automatic_scope_inversing = true # Raise when running tests if fixtures contained foreign key violations -# Rails.application.config.active_record.verify_foreign_keys_for_fixtures = true +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