Add Export Model
This commit is contained in:
parent
d0f0533a32
commit
d0939ae1a4
9 changed files with 206 additions and 1 deletions
|
@ -4,6 +4,7 @@ class GroupeInstructeur < ApplicationRecord
|
|||
has_many :assign_tos
|
||||
has_many :instructeurs, through: :assign_tos, dependent: :destroy
|
||||
has_many :dossiers
|
||||
has_and_belongs_to_many :exports
|
||||
|
||||
validates :label, presence: { message: 'doit être renseigné' }, allow_nil: false
|
||||
validates :label, uniqueness: { scope: :procedure, message: 'existe déjà' }
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue