Browse Source

add paper trail to organisation rent periods in case of any further bugs (#2461)

pull/2464/head
Arthur Campbell 7 months ago committed by GitHub
parent
commit
00c8567538
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
  1. 2
      app/models/organisation_rent_period.rb

2
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

Loading…
Cancel
Save