jasonmlutz / winner

Full stack survey app
0 stars 0 forks source link

Uniqueness of position, scoped #7

Open jasonmlutz opened 2 years ago

jasonmlutz commented 2 years ago

Question and ResponseOption objects have a position value, which by design is unique (scoped to parent). Implement this validation.

jasonmlutz commented 2 years ago

Similarly, a Question should not have identically-titled response options, though a survey can have identically titled questions (e.g., "Which food is your favorite?" where the presented options differ between questions.)