Describe the bug
Attempting to delete a article which has a comment or comments will result in an error with constraint violoation.
To Reproduce
Steps to reproduce the behavior:
Create an article
Create a comment belongs to article
Try to delete the article
Expected behavior
Article should be deleted.
Current behavior
A constraint violation error arises.
Possible Solution
Check the article and comment models.
Describe the bug Attempting to delete a article which has a comment or comments will result in an error with constraint violoation. To Reproduce Steps to reproduce the behavior:
Expected behavior Article should be deleted.
Current behavior A constraint violation error arises.
Possible Solution Check the article and comment models.
Additional context