We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a7eb71e commit 6c0ece5Copy full SHA for 6c0ece5
app/models/user.rb
@@ -3,6 +3,8 @@ class User < ActiveRecord::Base
3
has_many :activities
4
before_save :ensure_authentication_token
5
before_save :ensure_gravatar_hash
6
+
7
+ validates :username, :presence => true, :uniqueness => true
8
9
10
# Kandan.devise_modules is defined in config/initializers/kandan.rb
0 commit comments