feat(procedure): defaut_group_instructeur is the first created

This commit is contained in:
simon lehericey 2023-03-24 10:21:19 +01:00 committed by Eric Leroy-Terquem
parent 9e7e452c02
commit 1592006f63

View file

@ -207,7 +207,7 @@ class Procedure < ApplicationRecord
has_one :refused_mail, class_name: "Mails::RefusedMail", dependent: :destroy
has_one :without_continuation_mail, class_name: "Mails::WithoutContinuationMail", dependent: :destroy
has_one :defaut_groupe_instructeur, -> { active.order(:label) }, class_name: 'GroupeInstructeur', inverse_of: false
has_one :defaut_groupe_instructeur, -> { active.order(id: :asc) }, class_name: 'GroupeInstructeur', inverse_of: false
has_one_attached :logo
has_one_attached :notice