Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'app/models/ci/job_annotation.rb')
-rw-r--r--app/models/ci/job_annotation.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/app/models/ci/job_annotation.rb b/app/models/ci/job_annotation.rb
index a8bef02cc42..a6ce4196cc1 100644
--- a/app/models/ci/job_annotation.rb
+++ b/app/models/ci/job_annotation.rb
@@ -3,6 +3,7 @@
module Ci
class JobAnnotation < Ci::ApplicationRecord
include Ci::Partitionable
+ include BulkInsertSafe
self.table_name = :p_ci_job_annotations
self.primary_key = :id
@@ -13,7 +14,6 @@ module Ci
validates :data, json_schema: { filename: 'ci_job_annotation_data' }
validates :name, presence: true,
- length: { maximum: 255 },
- uniqueness: { scope: [:job_id, :partition_id] }
+ length: { maximum: 255 }
end
end