Read about our upcoming Code of Conduct on this issue

build_trace_section.rb 429 Bytes
Newer Older
1
2
# frozen_string_literal: true

3
module Ci
4
  class BuildTraceSection < ApplicationRecord
5
6
    extend Gitlab::Ci::Model

7
8
9
    # Only remove > 2019-11-22 and > 12.5
    self.ignored_columns += %i[id]

10
11
12
13
14
15
16
    belongs_to :build, class_name: 'Ci::Build'
    belongs_to :project
    belongs_to :section_name, class_name: 'Ci::BuildTraceSectionName'

    validates :section_name, :build, :project, presence: true, allow_blank: false
  end
end