Browse Source

add paper trail to organisation rent periods in case of any further bugs

pull/2461/head
Arthur Campbell 2 years ago
parent
commit
a30d8dd72e
  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