models: require belong_to associations on attestation_template

This commit is contained in:
Pierre de La Morinerie 2020-07-20 16:30:29 +02:00
parent 1ea4c2aa36
commit aefdd5d2a1
4 changed files with 6 additions and 4 deletions

View file

@ -15,7 +15,7 @@ class AttestationTemplate < ApplicationRecord
include ActionView::Helpers::NumberHelper
include TagsSubstitutionConcern
belongs_to :procedure
belongs_to :procedure, optional: false
has_one_attached :logo
has_one_attached :signature