2018-08-03 07:15:25 +00:00
|
|
|
# frozen_string_literal: true
|
|
|
|
|
2017-07-26 09:31:09 +00:00
|
|
|
module Ci
|
|
|
|
class PipelineVariable < ActiveRecord::Base
|
2017-09-06 11:13:52 +00:00
|
|
|
extend Gitlab::Ci::Model
|
2017-07-26 09:31:09 +00:00
|
|
|
include HasVariable
|
|
|
|
|
|
|
|
belongs_to :pipeline
|
|
|
|
|
2018-04-18 15:32:33 +00:00
|
|
|
alias_attribute :secret_value, :value
|
|
|
|
|
2017-07-26 09:31:09 +00:00
|
|
|
validates :key, uniqueness: { scope: :pipeline_id }
|
|
|
|
end
|
|
|
|
end
|