Skip to content

Commit

Permalink
fix(validators): fix validation, AvailabilityPlaceValidator changed t…
Browse files Browse the repository at this point in the history
…o validate on create only, ticket #338
  • Loading branch information
Creiwry committed Feb 27, 2023
1 parent c45daa0 commit be9cabe
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/models/enrollment.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit be9cabe

Please sign in to comment.