Rails Multitenancy boilerplate. Users-Memberships-Organizations. Row-based. Set tenant based on URL params by default
58
stars
3
forks
source link
user deleting himself - should it delete all his account_memberships? accounts? #106
Open
yshmarov opened 3 weeks ago
Currently user can delete his account. It is tested here: https://github.com/yshmarov/askvote/blob/ffab700daef8a7ffc9cc06fba499b2ea0fc186eb/test/models/user_test.rb#L0-L1
I think:
Generally leaving an Account makes sense. Deleting a User does not.
a user deleting himself should not delete memberships. member should have some sort of state "without user"