From a3971caeb5f67f44bf5a84674105a3e48db33d11 Mon Sep 17 00:00:00 2001 From: Anton Date: Fri, 17 Dec 2021 12:26:58 +0100 Subject: [PATCH] Update import row for list and checklist items [SCI-6383] --- app/models/repository_checklist_item.rb | 2 +- app/models/repository_list_item.rb | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/app/models/repository_checklist_item.rb b/app/models/repository_checklist_item.rb index 6d374de17..457d518c4 100644 --- a/app/models/repository_checklist_item.rb +++ b/app/models/repository_checklist_item.rb @@ -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 diff --git a/app/models/repository_list_item.rb b/app/models/repository_list_item.rb index 26fbb20c6..9d90c8ed0 100644 --- a/app/models/repository_list_item.rb +++ b/app/models/repository_list_item.rb @@ -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