Welcome to mirror list, hosted at ThFree Co, Russian Federation.

group_variable.rb « ci « models « app - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
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