summaryrefslogtreecommitdiff
path: root/app/models/switchboard_entry.rb
diff options
context:
space:
mode:
authorStefan Wintermeyer <stefan.wintermeyer@amooma.de>2013-03-10 08:43:23 +0100
committerStefan Wintermeyer <stefan.wintermeyer@amooma.de>2013-03-10 08:43:23 +0100
commit21d0843117c0962bd962fc50fccaf276a5b3067f (patch)
tree22745bde7f8b140e0a8fb15a09db0670afe2e0b7 /app/models/switchboard_entry.rb
parent6374c0b3e38dfc74eb1b4a5a1fcc5229eacdcaf2 (diff)
Misc
Diffstat (limited to 'app/models/switchboard_entry.rb')
-rw-r--r--app/models/switchboard_entry.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/app/models/switchboard_entry.rb b/app/models/switchboard_entry.rb
index d1e9a0c..76d002f 100644
--- a/app/models/switchboard_entry.rb
+++ b/app/models/switchboard_entry.rb
@@ -12,6 +12,7 @@ class SwitchboardEntry < ActiveRecord::Base
:presence => true
validates :name,
+ :length => { :maximum => 10 },
:uniqueness => {:scope => :switchboard_id},
:allow_blank => true,
:allow_nil => true