summaryrefslogtreecommitdiff
path: root/app/models/ci/pipeline_variable.rb
blob: de5aae17a150c36992c24dfb18320bf748e61857 (plain)
1
2
3
4
5
6
7
8
9
10
module Ci
  class PipelineVariable < ActiveRecord::Base
    extend Gitlab::Ci::Model
    include HasVariable

    belongs_to :pipeline

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