DEV Community

Shekhar Sahu
Shekhar Sahu

Posted on

Uniqueness Gotcha!!!

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.

Top comments (0)