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