Update import row for list and checklist items [SCI-6383]

This commit is contained in:
Anton 2021-12-17 12:26:58 +01:00
parent 35179607b4
commit a3971caeb5
2 changed files with 2 additions and 2 deletions

View file

@ -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

View file

@ -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