From 0eb7496502a784fddac27dcee4c8dc5be90ea477 Mon Sep 17 00:00:00 2001 From: Henne Vogelsang Date: Mon, 14 Feb 2022 19:01:50 +0100 Subject: [PATCH] Disable ActiveRecord.belongs_to_required_by_default This is a nightmare currently, no one ever thought about this in our data model. --- config/application.rb | 2 ++ 1 file changed, 2 insertions(+) diff --git a/config/application.rb b/config/application.rb index b647c947..9897473c 100644 --- a/config/application.rb +++ b/config/application.rb @@ -33,5 +33,7 @@ module Osem config.active_support.escape_html_entities_in_json = true # Don't generate system test files. config.generators.system_tests = nil + # This is a nightmare with our current data model, no one ever thought about this. + config.active_record.belongs_to_required_by_default = false end end