models: require belong_to associations on service

This commit is contained in:
Pierre de La Morinerie 2020-07-20 17:02:26 +02:00
parent ce53e219e0
commit 059c147ffc
2 changed files with 3 additions and 2 deletions

View file

@ -16,7 +16,7 @@
#
class Service < ApplicationRecord
has_many :procedures
belongs_to :administrateur
belongs_to :administrateur, optional: false
scope :ordered, -> { order(nom: :asc) }