summaryrefslogtreecommitdiff
path: root/app/models/ci/group_variable.rb
blob: afeae69ba39a35cc98e70e87d41d38835e39c9ac (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
module Ci
  class GroupVariable < ActiveRecord::Base
    extend Gitlab::Ci::Model
    include HasVariable
    include Presentable

    belongs_to :group

    validates :key, uniqueness: { scope: :group_id }

    scope :unprotected, -> { where(protected: false) }
  end
end