From: Jan Provaznik <[email protected]> Template model checks uniqueness of template name --- 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 dec7b4b..25b1661 100644 --- a/src/app/models/template.rb +++ b/src/app/models/template.rb @@ -13,6 +13,7 @@ class Template < ActiveRecord::Base # so there can be situation when save is called and name and platform can be # unset) validates_presence_of :name + validates_uniqueness_of :name validates_presence_of :platform validates_presence_of :platform_version validates_presence_of :architecture -- 1.7.2.3 _______________________________________________ deltacloud-devel mailing list [email protected] https://fedorahosted.org/mailman/listinfo/deltacloud-devel
