DEV Community


Uniqueness Gotcha!!!

Shekhar Sahu
・1 min read


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)