Add Export Model

This commit is contained in:
simon lehericey 2019-12-03 18:36:50 +01:00
parent d0f0533a32
commit d0939ae1a4
9 changed files with 206 additions and 1 deletions

View file

@ -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à' }