blob: 96d6e120998077f720495cce6ad05701081b2003 (
plain)
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 }
scope :unprotected, -> { where(protected: false) }
end
end
|