mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2025-03-10 14:46:42 +08:00
Merge pull request #144 from ZmagoD/description-len
set experiment description to 255
This commit is contained in:
commit
e27ee06151
2 changed files with 2 additions and 1 deletions
|
@ -418,6 +418,7 @@ li.module-hover {
|
||||||
|
|
||||||
.experiment-description {
|
.experiment-description {
|
||||||
margin-top: 20px;
|
margin-top: 20px;
|
||||||
|
word-wrap: break-word;
|
||||||
}
|
}
|
||||||
|
|
||||||
.no-description {
|
.no-description {
|
||||||
|
|
|
@ -21,7 +21,7 @@ class Experiment < ActiveRecord::Base
|
||||||
presence: true,
|
presence: true,
|
||||||
length: { minimum: 4, maximum: 50 },
|
length: { minimum: 4, maximum: 50 },
|
||||||
uniqueness: { scope: :project, case_sensitive: false }
|
uniqueness: { scope: :project, case_sensitive: false }
|
||||||
validates :description, length: { maximum: 50 }
|
validates :description, length: { maximum: 255 }
|
||||||
validates :project, presence: true
|
validates :project, presence: true
|
||||||
validates :created_by, presence: true
|
validates :created_by, presence: true
|
||||||
validates :last_modified_by, presence: true
|
validates :last_modified_by, presence: true
|
||||||
|
|
Loading…
Reference in a new issue