diff options
Diffstat (limited to 'app/models/gs_parameter.rb')
-rw-r--r-- | app/models/gs_parameter.rb | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/app/models/gs_parameter.rb b/app/models/gs_parameter.rb index aac10b0..8e30583 100644 --- a/app/models/gs_parameter.rb +++ b/app/models/gs_parameter.rb @@ -1,4 +1,6 @@ class GsParameter < ActiveRecord::Base + attr_accessible :name, :section, :value, :class_type, :description + validates :name, :presence => true, :uniqueness => true |