Fix foreign key issues

Add missing :dependent to all associations not to left orphan
records behind causing foreign key constraint issues