Defect #19840 » version-validate-desription.diff
| app/models/version.rb (copia de trabajo) | ||
|---|---|---|
|
validates_presence_of :name
|
||
|
validates_uniqueness_of :name, :scope => [:project_id]
|
||
|
validates_length_of :name, :maximum => 60
|
||
|
validates_length_of :description, :maximum => 255
|
||
|
validates :effective_date, :date => true
|
||
|
validates_inclusion_of :status, :in => VERSION_STATUSES
|
||
|
validates_inclusion_of :sharing, :in => VERSION_SHARINGS
|
||