Sunki Baek

Joined

10 Experience
0 Lessons Completed
0 Questions Solved

Activity

Posted in Soft Delete with Paranoia Discussion

Great episode. I might try to put a method like this in user model to get a user name from deleted user.

def name
if deleted_at
'Deleted User'
else
super
end
end

I like the idea of using deleted_at to have a timestamp and status at the same time.

Thanks!