mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2024-11-10 17:36:33 +08:00
set experiment description to 255
This commit is contained in:
parent
1368716aa0
commit
1b31f8827d
2 changed files with 2 additions and 1 deletions
|
@ -418,6 +418,7 @@ li.module-hover {
|
|||
|
||||
.experiment-description {
|
||||
margin-top: 20px;
|
||||
word-wrap: break-word;
|
||||
}
|
||||
|
||||
.no-description {
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue