Defect #24006 » add_description_limit_mysql_adapter.diff
| app/models/issue.rb | ||
|---|---|---|
|
validates_presence_of :author, :if => Proc.new {|issue| issue.new_record? || issue.author_id_changed?}
|
||
|
validates_length_of :subject, :maximum => 255
|
||
|
validates_length_of :description, :maximum => 65534 if ActiveRecord::Base.connection.adapter_name == "Mysql2"
|
||
|
validates_inclusion_of :done_ratio, :in => 0..100
|
||
|
validates :estimated_hours, :numericality => {:greater_than_or_equal_to => 0, :allow_nil => true, :message => :invalid}
|
||
|
validates :start_date, :date => true
|
||
- « Previous
- 1
- …
- 3
- 4
- 5
- Next »