add praise to be able to inspect exceptions before unwinding stack
add deferred foreign keys
add ruby193-rubygem-foreigner to rhel6 comps

rubygem-foreigner is already present in Fedora 18
manually add FK - round 1

this is for tables which has no relations at all
manually add FK - round 2

I went through all *_id and check the if it is mapped to come data in katellodb or other db (pulp, candlepin) and added FK if needed
fix typoe in remove_foreign_key
task_statuses_task_owner_id_fk should not be FK

who is owner of the task is determined by task_owner_type. It can be systems, but it can be other table as well.
fix typo in name of table

addressing:
PGError: ERROR:  relation "organization" does not exist
: ALTER TABLE "organizations_users" ADD CONSTRAINT "organizations_users_organization_id_fk" FOREIGN KEY ("organization_id") REFERENCES "organization"(id) INITIALLY DEFERRED

and solving similar typos too.
add missing dependent: :destroy

if we are going to delete environment or content_view, remove
corresponding entry from content_view_version_environments table
fix typo
remove data from M:N table which points to non existent data

this address bug in code, which was addressed in commit e7e943d