Project

General

Profile

Defect #19840 » version-validate-desription.diff

Bruno Orcha García, 2015-05-14 15:18

View differences:

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
    (1-1/1)