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

15 lines
301 B
Ruby
Raw Normal View History

# frozen_string_literal: true
2017-06-21 09:25:01 +00:00
module Ci
class PipelineScheduleVariable < ApplicationRecord
extend Gitlab::Ci::Model
2017-06-21 09:25:01 +00:00
include HasVariable
belongs_to :pipeline_schedule
alias_attribute :secret_value, :value
validates :key, uniqueness: { scope: :pipeline_schedule_id }
2017-06-21 09:25:01 +00:00
end
end