Closed robertsapunarich closed 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.
dependent: :delete
has_many :posts
Smart!
This came to as I was reviewing some best practices. In the User model, we should add
dependent: :delete
to thehas_many :posts
line.