From f541f28fdcb7d0eda09dfd7d4917ec8537db810f Mon Sep 17 00:00:00 2001 From: moveson Date: Wed, 27 Nov 2024 08:32:54 -0700 Subject: [PATCH] Add paper_trail gem to HistoricalFact model --- app/models/historical_fact.rb | 1 + 1 file changed, 1 insertion(+) diff --git a/app/models/historical_fact.rb b/app/models/historical_fact.rb index e3635bdd6..34a5540a7 100644 --- a/app/models/historical_fact.rb +++ b/app/models/historical_fact.rb @@ -34,6 +34,7 @@ class HistoricalFact < ApplicationRecord strip_attributes collapse_spaces: true strip_attributes only: [:phone, :emergency_phone], regex: /[^0-9|+]/ capitalize_attributes :first_name, :last_name, :city, :emergency_contact + has_paper_trail belongs_to :organization belongs_to :person, optional: true