mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2025-01-30 19:48:18 +08:00
Merge pull request #3746 from aignatov-bio/ai-sci-6383-update-import-items-for-repository
Update import row for list and checklist items [SCI-6383]
This commit is contained in:
commit
a3edadb06e
2 changed files with 2 additions and 2 deletions
|
@ -11,7 +11,7 @@ class RepositoryChecklistItem < ApplicationRecord
|
|||
|
||||
validate :validate_per_column_limit
|
||||
validates :data, presence: true,
|
||||
uniqueness: { scope: :repository_column_id, case_sensitive: false },
|
||||
uniqueness: { scope: :repository_column_id },
|
||||
length: { maximum: Constants::NAME_MAX_LENGTH }
|
||||
|
||||
private
|
||||
|
|
|
@ -8,7 +8,7 @@ class RepositoryListItem < ApplicationRecord
|
|||
validate :validate_per_column_limit
|
||||
validates :data,
|
||||
presence: true,
|
||||
uniqueness: { scope: :repository_column_id, case_sensitive: false },
|
||||
uniqueness: { scope: :repository_column_id },
|
||||
length: { maximum: Constants::TEXT_MAX_LENGTH }
|
||||
|
||||
private
|
||||
|
|
Loading…
Reference in a new issue