[Fix #164] Make the organisme field mandatory
This commit is contained in:
parent
d88b82eebf
commit
731e1b6787
6 changed files with 16 additions and 1 deletions
|
@ -40,6 +40,7 @@ class Procedure < ActiveRecord::Base
|
|||
|
||||
validates :libelle, presence: true, allow_blank: false, allow_nil: false
|
||||
validates :description, presence: true, allow_blank: false, allow_nil: false
|
||||
validates :organisation, presence: true, allow_blank: false, allow_nil: false
|
||||
|
||||
def hide!
|
||||
now = DateTime.now
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue