spec/dummy/app/models/user.rb in gettext_simple_rails-0.0.6 vs spec/dummy/app/models/user.rb in gettext_simple_rails-0.0.7

- old
+ new

@@ -1,3 +1,7 @@ class User < ActiveRecord::Base has_many :roles + + validates :name, :length => {:in => 2..255} + validates :name, :uniqueness => true, :presence => true + validates :name, :format => {:with => /\A[A-z]+\Z/} end