Y
Hacker News
new
|
ask
|
show
|
jobs
by
kawsper
4076 days ago
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.