From 00c85675382c36035774731151c32efa3140e691 Mon Sep 17 00:00:00 2001 From: Arthur Campbell <51094020+arfacamble@users.noreply.github.com> Date: Tue, 11 Jun 2024 15:29:05 +0100 Subject: [PATCH] add paper trail to organisation rent periods in case of any further bugs (#2461) --- 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