has-friendship / has_friendship

Add friendship to ActiveRecord models
MIT License
198 stars 98 forks source link

Add unique index to prevent duplicated friendships #63

Closed xilefff closed 6 years ago

xilefff commented 6 years ago

Add unique index between friendable_id and friend_id to prevent duplicated friendships.

coveralls commented 6 years ago

Coverage Status

Coverage remained the same at 99.762% when pulling 4eb5901048607a06f7cf3c33979799f0c139ff40 on xilefff:patch-1 into 75c78238747f10a83240507c906530f3fcc366e2 on sungwoncho:master.

xilefff commented 6 years ago

Hey Kevin, my pleasure! Whoops, right, no problem! Thanks :)