gitlab-org--gitlab-foss/app/models/ci/pipeline_variable.rb
2017-09-12 22:32:01 +03:00

10 lines
202 B
Ruby

module Ci
class PipelineVariable < ActiveRecord::Base
extend Gitlab::Ci::Model
include HasVariable
belongs_to :pipeline
validates :key, uniqueness: { scope: :pipeline_id }
end
end