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: 0fdcb1ea32981ec61add90de6f42789d9bef64ad (plain)
1
2
3
4
5
6
7
8
9
10
11
module Ci
  class BuildTraceSectionName < ActiveRecord::Base
    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