In my application to search for rooms I have added some features in room. Like availity of parking space, Internet, pets friendly, kids friendly and some more. When adding the rooms for rent user will have check the check box to indicate the availability of the features. …
if you got error like “Key (email)=(email@example.com) is duplicated.”, that means you already have multiple values in database of same email. Remove those duplicate values and run the migrate command again.
We also need to add unique constraint for email in model .