I have the following in my user model:

  validates_uniqueness_of   :login, :email, :case_sensitive => false

yet somehow I ended up with two users with the same email. Does this
line mean that the COMBINATION is unique (I didn't think it did).

Should I have this instead:

 validates_uniqueness_of   :login, :case_sensitive => false
 validates_uniqueness_of   :email, :case_sensitive => false

Any ideas?
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to