fixes #2400 continuation - PG constraints deferred and change destroy_all to delete_all
squash this commit