Swapsea/swapsea

Prevent duplicate Requests on same roster.

Opened this issue · 0 comments

We have had issues in the past with >1 request for the same roster existing.
it isn't possible to constrain this via the database, so it needs to be done in the model.

Uniqueness constraint needed on Request model for

  • User,
  • Roster
  • Request.status = ‘open’ (only)