1 2 3 4 5 6 7 8 9 10 11 12
module Ci class Variable < ActiveRecord::Base extend Ci::Model include HasVariable belongs_to :project validates :key, uniqueness: { scope: [:project_id, :environment_scope] } scope :unprotected, -> { where(protected: false) } end end