From be9cabeb671f348e15680e182fd75fdc849aac62 Mon Sep 17 00:00:00 2001 From: Creiwry Date: Mon, 27 Feb 2023 17:17:27 +0100 Subject: [PATCH] fix(validators): fix validation, AvailabilityPlaceValidator changed to validate on create only, ticket #338 --- app/models/enrollment.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/models/enrollment.rb b/app/models/enrollment.rb index ce529cb2..7eb0efc8 100644 --- a/app/models/enrollment.rb +++ b/app/models/enrollment.rb @@ -22,7 +22,7 @@ class Enrollment < ApplicationRecord validates_with EnrollmentValidators::CashRegisterProficiencyValidator validates_with EnrollmentValidators::DatetimesInclusionValidator validates_with EnrollmentValidators::UniquenessEnrollmentValidator, on: :create - validates_with EnrollmentValidators::AvailabilityPlaceValidator + validates_with EnrollmentValidators::AvailabilityPlaceValidator, on: :create validates_with EnrollmentValidators::AvailabilitySlotValidator validates_with EnrollmentValidators::DurationValidator validates_with EnrollmentValidators::MatchingMissionTimeSlotsValidator