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