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

build_trace_section_name.rb « ci « models « app - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: c065cfea14ea41de5383d12f2bfed301854ad36a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
# frozen_string_literal: true

module Ci
  class BuildTraceSectionName < ApplicationRecord
    extend Gitlab::Ci::Model

    belongs_to :project
    has_many :trace_sections, class_name: 'Ci::BuildTraceSection', foreign_key: :section_name_id

    validates :name, :project, presence: true, allow_blank: false
    validates :name, uniqueness: { scope: :project_id }
  end
end