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

14 lines
280 B
Ruby
Raw Normal View History

# frozen_string_literal: true
2017-06-21 05:25:01 -04:00
module Ci
class PipelineScheduleVariable < Ci::ApplicationRecord
include Ci::HasVariable
2017-06-21 05:25:01 -04:00
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