Unable to delete Compute Resource/Deassociate Compute Profile
I'm getting the following error message when trying to delete VMware compute resource:
ERROR: update or delete on table "compute_resources" violates foreign key constraint "compute_attributes_compute_resource_id_fk" on table "compute_attributes" DETAIL: Key (id)=(3) is still referenced from table "compute_attributes".
If Compute Resource is not associated with any Compute Profiles deletion works just fine but it looks like it's not possible to deassociate compute profile.
Fixes #4221: add :dependent => :destroy for compute profiles on compute resource