News for hackers. Stuff that matters.
Re:Race conditions on Facebook, DigitalOcean and others (fixed) by kawsper on Monday April 27, 2015 @02:24PM (#9448199)
Read the part "Concurrency and integrity" in the Rails documentation: http://apidock.com/rails/ActiveRecord/Validations/ClassMetho...

You need to enforce the uniqueness in the DB.

There are no comments on this comment yet.