DEV Community

loading...

Uniqueness Gotcha!!!

Shekhar Sahu
・1 min read

Link: https://blog.joshsoftware.com/2015/05/04/uniqueness-gotcha/

Consider the following relation where poll is having many options and each option of the poll must be having a unique description,

Now, when trying to create a poll with its options using nested attributes, uniqueness validation is not getting applied due to race condition.

Discussion (0)