blob: a65ef885b886e2e4809d7acea21bef6a35f00b9d (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
# frozen_string_literal: true
module Ci
class BuildReportResult < ApplicationRecord
extend Gitlab::Ci::Model
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
validates :build, :project, presence: true
validates :data, json_schema: { filename: "build_report_result_data" }
end
end
|