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

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

module Ci
  class PipelineScheduleVariable < Ci::ApplicationRecord
    include Ci::HasVariable
    include Ci::RawVariable

    belongs_to :pipeline_schedule

    alias_attribute :secret_value, :value

    validates :key, presence: true, uniqueness: { scope: :pipeline_schedule_id }
  end
end