-
Notifications
You must be signed in to change notification settings - Fork 98
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Separate table/model for friendship blocking records #12
Comments
If we have a blocker_id we don't need a blockee_id. We could also just add a "blocked" and "bocked_by" status; according to whom blocked the relation. |
You're right. We don't need both |
I have been thinking about it and it seems more logical to me to keep the same convention you used for the friendship request. That way we keep the table cleaner. I think we should add some validations too |
What convention do you mean? Do you mean that we keep the current structure? |
Just like for a request we have "requested" and "pending", we can do the same for blocked records: for example we can have "blocked" and "blocked_by" |
That's a reasonable approach. We could add statuses like |
By the way your PR was very helpful. Would you like to be a collaborator for this gem? |
Sure:) It would be fun to keep collaborating in this project |
friendship
table contains too much information, it would be nice if some of them are decoupled.I think it'd be a good idea to make a separate table/model for records for friendship block/unblock, with
blocker_id
andblockee_id
.The text was updated successfully, but these errors were encountered: