Added missing has_many for the has_many through relationship
Added dependent => destroy 's