2018-08-03 07:15:25 +00:00
|
|
|
# frozen_string_literal: true
|
|
|
|
|
2017-06-21 09:25:01 +00:00
|
|
|
module Ci
|
2019-03-28 13:17:42 +00:00
|
|
|
class PipelineScheduleVariable < ApplicationRecord
|
2017-09-06 11:13:52 +00:00
|
|
|
extend Gitlab::Ci::Model
|
2020-03-18 12:09:13 +00:00
|
|
|
include Ci::HasVariable
|
2017-06-21 09:25:01 +00:00
|
|
|
|
|
|
|
belongs_to :pipeline_schedule
|
2017-08-17 16:43:17 +00:00
|
|
|
|
2018-03-17 15:18:36 +00:00
|
|
|
alias_attribute :secret_value, :value
|
|
|
|
|
2017-08-17 16:43:17 +00:00
|
|
|
validates :key, uniqueness: { scope: :pipeline_schedule_id }
|
2017-06-21 09:25:01 +00:00
|
|
|
end
|
|
|
|
end
|