mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2025-02-21 22:33:13 +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
|
validate :validate_per_column_limit
|
||||||
validates :data, presence: true,
|
validates :data, presence: true,
|
||||||
uniqueness: { scope: :repository_column_id, case_sensitive: false },
|
uniqueness: { scope: :repository_column_id },
|
||||||
length: { maximum: Constants::NAME_MAX_LENGTH }
|
length: { maximum: Constants::NAME_MAX_LENGTH }
|
||||||
|
|
||||||
private
|
private
|
||||||
|
|
|
@ -8,7 +8,7 @@ class RepositoryListItem < ApplicationRecord
|
||||||
validate :validate_per_column_limit
|
validate :validate_per_column_limit
|
||||||
validates :data,
|
validates :data,
|
||||||
presence: true,
|
presence: true,
|
||||||
uniqueness: { scope: :repository_column_id, case_sensitive: false },
|
uniqueness: { scope: :repository_column_id },
|
||||||
length: { maximum: Constants::TEXT_MAX_LENGTH }
|
length: { maximum: Constants::TEXT_MAX_LENGTH }
|
||||||
|
|
||||||
private
|
private
|
||||||
|
|
Loading…
Reference in a new issue