mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2025-02-28 17:54:16 +08:00
Add validation of text_value length [SCI-1267]
This commit is contained in:
parent
72a651c7de
commit
0dc0c7d096
1 changed files with 3 additions and 0 deletions
|
@ -3,4 +3,7 @@ class RepositoryTextValue < ActiveRecord::Base
|
|||
accepts_nested_attributes_for :repository_cell
|
||||
|
||||
validates :repository_cell, presence: true
|
||||
validates :value,
|
||||
presence: true,
|
||||
length: { maximum: Constants::TEXT_MAX_LENGTH }
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue