Skip to content
This repository has been archived by the owner on Apr 11, 2022. It is now read-only.

Genre name must be unique #480

Open
leonardr opened this issue Mar 21, 2017 · 0 comments
Open

Genre name must be unique #480

leonardr opened this issue Mar 21, 2017 · 0 comments

Comments

@leonardr
Copy link
Contributor

There's no reason to have two Genres with the same name, and a race condition can cause duplicate genres to be created. Putting a uniqueness constraint on Genre.name will flush out the race condition and stop the problem from affecting the app server.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant