Eventually all the other appropriate db string fields should have this validation --- src/app/models/template.rb | 1 + 1 files changed, 1 insertions(+), 0 deletions(-)
diff --git a/src/app/models/template.rb b/src/app/models/template.rb index 9264e76..e9f2327 100644 --- a/src/app/models/template.rb +++ b/src/app/models/template.rb @@ -14,6 +14,7 @@ class Template < ActiveRecord::Base # unset) validates_presence_of :name validates_uniqueness_of :name + validates_length_of :name, :maximum => 255 validates_presence_of :platform validates_presence_of :platform_version validates_presence_of :architecture
deltacloud-devel@lists.fedorahosted.org