Add description to type_de_champs table
This commit is contained in:
parent
5c643c6373
commit
2d548acba0
4 changed files with 28 additions and 14 deletions
|
@ -1,13 +1,13 @@
|
|||
class TypeDeChamps < ActiveRecord::Base
|
||||
enum type: {text: 'text',
|
||||
textarea: 'textarea',
|
||||
datetime: 'datetime',
|
||||
number: 'number'
|
||||
enum type_champs: {text: 'text',
|
||||
textarea: 'textarea',
|
||||
datetime: 'datetime',
|
||||
number: 'number'
|
||||
}
|
||||
|
||||
belongs_to :procedure
|
||||
|
||||
validates :libelle, presence: true, allow_blank: false, allow_nil: false
|
||||
validates :type, presence: true, allow_blank: false, allow_nil: false
|
||||
validates :type_champs, presence: true, allow_blank: false, allow_nil: false
|
||||
validates :order_place, presence: true, allow_blank: false, allow_nil: false
|
||||
end
|
Loading…
Add table
Add a link
Reference in a new issue