fixes #3202 - PG constraints deferred and change destroy_all to delete_all