gitlab-org--gitlab-foss/app/models/ci/pipeline_schedule_variable.rb

13 lines
271 B
Ruby
Raw Normal View History

2017-06-21 05:25:01 -04:00
module Ci
class PipelineScheduleVariable < ActiveRecord::Base
extend Gitlab::Ci::Model
2017-06-21 05:25:01 -04:00
include HasVariable
belongs_to :pipeline_schedule
alias_attribute :secret_value, :value
validates :key, uniqueness: { scope: :pipeline_schedule_id }
2017-06-21 05:25:01 -04:00
end
end