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

13 lines
245 B
Ruby
Raw Normal View History

2017-07-26 09:31:09 +00:00
module Ci
class PipelineVariable < ActiveRecord::Base
extend Gitlab::Ci::Model
2017-07-26 09:31:09 +00:00
include HasVariable
belongs_to :pipeline
alias_attribute :secret_value, :value
2017-07-26 09:31:09 +00:00
validates :key, uniqueness: { scope: :pipeline_id }
end
end