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