set experiment description to 255

This commit is contained in:
zmagod 2016-09-08 14:35:52 +02:00
parent 1368716aa0
commit 1b31f8827d
2 changed files with 2 additions and 1 deletions

View file

@ -418,6 +418,7 @@ li.module-hover {
.experiment-description {
margin-top: 20px;
word-wrap: break-word;
}
.no-description {

View file

@ -21,7 +21,7 @@ class Experiment < ActiveRecord::Base
presence: true,
length: { minimum: 4, maximum: 50 },
uniqueness: { scope: :project, case_sensitive: false }
validates :description, length: { maximum: 50 }
validates :description, length: { maximum: 255 }
validates :project, presence: true
validates :created_by, presence: true
validates :last_modified_by, presence: true