Permalink
Browse files

Remove uniqueness constraint for now

  • Loading branch information...
1 parent f28cb5c commit bbe22eb82e08edabb6b24819ab49d15397be0aa8 @mhartl mhartl committed Apr 18, 2012
Showing with 1 addition and 2 deletions.
  1. +1 −2 app/models/user.rb
View
@@ -13,8 +13,7 @@ class User < ActiveRecord::Base
validates :name, presence: true, length: { maximum: 50 }
VALID_EMAIL_REGEX = /\A[\w+\-.]+@[a-z\d\-.]+\.[a-z]+\z/i
- validates :email, presence: true, format: { with: VALID_EMAIL_REGEX },
- uniqueness: { case_sensitive: false }
+ validates :email, presence: true, format: { with: VALID_EMAIL_REGEX }
validates :password, length: { minimum: 6 }
validates :password_confirmation, presence: true

0 comments on commit bbe22eb

Please sign in to comment.