The uniqueness validation provided by Rails is not enough to ensure you don't get duplicates. Adding indices causes 500s. This presentation can help!