models: require belong_to associations on attestation_template
This commit is contained in:
parent
1ea4c2aa36
commit
aefdd5d2a1
4 changed files with 6 additions and 4 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue