summaryrefslogtreecommitdiff
path: root/app/models/ci/pipeline_variable.rb
blob: 017ec0b145a8bb0122f8f4dc2a642f331b097f41 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
# frozen_string_literal: true

module Ci
  class PipelineVariable < ActiveRecord::Base
    extend Gitlab::Ci::Model
    include HasVariable

    belongs_to :pipeline

    alias_attribute :secret_value, :value

    validates :key, uniqueness: { scope: :pipeline_id }
  end
end