summaryrefslogtreecommitdiff
path: root/app/models/ci/pipeline_schedule_variable.rb
blob: be6e5e76c31d283bd646d8b5233d19955d4eab51 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
# frozen_string_literal: true

module Ci
  class PipelineScheduleVariable < ApplicationRecord
    extend Gitlab::Ci::Model
    include HasVariable

    belongs_to :pipeline_schedule

    alias_attribute :secret_value, :value

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