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

11 lines
228 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
validates :key, uniqueness: { scope: :pipeline_schedule_id }
2017-06-21 05:25:01 -04:00
end
end