Project

General

Profile

Defect #24006 » add_description_limit_mysql_adapter.diff

Helder Manuel Torres Vieira, 2016-10-05 20:14

View differences:

app/models/issue.rb
69 69
  validates_presence_of :author, :if => Proc.new {|issue| issue.new_record? || issue.author_id_changed?}
70 70

  
71 71
  validates_length_of :subject, :maximum => 255
72
  validates_length_of :description, :maximum => 65534 if ActiveRecord::Base.connection.adapter_name == "Mysql2"
72 73
  validates_inclusion_of :done_ratio, :in => 0..100
73 74
  validates :estimated_hours, :numericality => {:greater_than_or_equal_to => 0, :allow_nil => true, :message => :invalid}
74 75
  validates :start_date, :date => true
(5-5/5)