PlayWithMagic / PlayWithMagic.org

PlayWithMagic.org is a web application that catalogs magic tricks and helps magicians build shows.
http://playwithmagic.github.io/PlayWithMagic.org/
Apache License 2.0
2 stars 1 forks source link

Implement logical unique constraints on Magician #170

Closed marknelsonengineer closed 9 years ago

marknelsonengineer commented 9 years ago

There should be a few 'rules' preventing duplicate Magicians:

The rules should be validated in EditMagicianFormData.validate() with helpful messages such as: The Stage Name 'Slydini' has already been taken.

pkarjala commented 9 years ago

We can use the @Unique constraint to help with the DB implementation.

pkarjala commented 9 years ago

This will be email only at this time, as we do not want to prevent people with the same name from creating an account. We also do not require stageName at account creation, so we will need to migrate that to make it a required field in order to consider making it a unique constraint.

marknelsonengineer commented 9 years ago

Done