From a30d8dd72e0c328fde0a300550060c842364eb31 Mon Sep 17 00:00:00 2001 From: Arthur Campbell Date: Tue, 11 Jun 2024 12:14:16 +0100 Subject: [PATCH] add paper trail to organisation rent periods in case of any further bugs --- app/models/organisation_rent_period.rb | 2 ++ 1 file changed, 2 insertions(+) diff --git a/app/models/organisation_rent_period.rb b/app/models/organisation_rent_period.rb index 94934d74b..210d6457b 100644 --- a/app/models/organisation_rent_period.rb +++ b/app/models/organisation_rent_period.rb @@ -2,4 +2,6 @@ class OrganisationRentPeriod < ApplicationRecord belongs_to :organisation validates :organisation_id, uniqueness: { scope: :rent_period } # rubocop:disable Rails/UniqueValidationWithoutIndex + + has_paper_trail end