Make Plan.name unique
Everyone can contribute. Help move this issue forward while earning points, leveling up and collecting rewards.
plans table does not have a unique index on name. We consider name to be unique but this constraint is not explicit in the database, neither in the model validations.
Solution
- Change existing index on
nameto be unique - Add model validation for uniqueness on
name
Edited by 🤖 GitLab Bot 🤖