Open simonx1 opened 6 years ago
When user is removed lots of "trash" stays in the DB. IMHO it would be best just to add dependent: :destroy for user's has_many associations.
dependent: :destroy
has_many
Coverage remained the same at 97.201% when pulling 3ed59e5be044fcc4025aba8d75b529b5cc11ea9c on simonx1:add-dependencies-removal-for-user into ff29323b8a9692a82dcc498498761675ee44701d on rbCAS:master.
When user is removed lots of "trash" stays in the DB. IMHO it would be best just to add
dependent: :destroy
for user'shas_many
associations.