Hacker News new | ask | show | jobs
by rapala 3979 days ago
Or you could do:

1. Insert new User instance 2. Unique constraint violation? Tell user that the username is already registered.