adds dependent destroy for all unique dependencies in rails server