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/build_report_result.rb')
-rw-r--r--app/models/ci/build_report_result.rb4
1 files changed, 4 insertions, 0 deletions
diff --git a/app/models/ci/build_report_result.rb b/app/models/ci/build_report_result.rb
index b674c1b1a0e..b2d99fab295 100644
--- a/app/models/ci/build_report_result.rb
+++ b/app/models/ci/build_report_result.rb
@@ -2,11 +2,15 @@
module Ci
class BuildReportResult < Ci::ApplicationRecord
+ include Ci::Partitionable
+
self.primary_key = :build_id
belongs_to :build, class_name: "Ci::Build", inverse_of: :report_results
belongs_to :project, class_name: "Project", inverse_of: :build_report_results
+ partitionable scope: :build
+
validates :build, :project, presence: true
validates :data, json_schema: { filename: "build_report_result_data" }