FirehoseCommunity / DEFCON

6 stars 4 forks source link

Ensure a user's posts are deleted if a user account is deleted. #129

Closed robertsapunarich closed 8 years ago

robertsapunarich commented 8 years ago

This came to as I was reviewing some best practices. In the User model, we should add dependent: :delete to the has_many :posts line.

kenmazaika commented 8 years ago

Smart!

robertsapunarich commented 8 years ago

130