From fadcea03c0e589e8fbcf919fbbb6fc7d1ac14497 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?David=20B=C3=B6hm?= Date: Wed, 11 Sep 2024 06:10:42 +0200 Subject: [PATCH] Added validation for costum_qm_plan --- app/models/job.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/models/job.rb b/app/models/job.rb index 520f592..7743d91 100644 --- a/app/models/job.rb +++ b/app/models/job.rb @@ -6,7 +6,7 @@ class Job < ApplicationRecord validates_presence_of :costumer_firstname, :costumer_lastname, :pdf validates :privacy_policy, acceptance: true, unless: :created_by_operator? - validates :number_of_plans_a0, :number_of_plans_a1, :number_of_plans_a2, :number_of_plans_a3, numericality: { greater_than_or_equal_to: 0 } + validates :number_of_plans_a0, :number_of_plans_a1, :number_of_plans_a2, :number_of_plans_a3, :costum_qm_plan, numericality: { greater_than_or_equal_to: 0 } validate :acceptable_pdf