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
Add development tools - praise

Praise helps to inspect exceptions and current stack before stack is
unwounded. Follow instructions in `lib/development_tools/praise/load.rb`
to enable it.
(cherry picked from commit ce045cb4031d71bcb2eb9ea974754b95cd0c6743)
966396: Add missing ids in relation tables

Relation tables having its models has to have primary key `id`.
Without it ActiveRecord is not functioning properly. It was causing
nasty errors with malformed SQL statements e.g.
`"content_view_version_environments".""`.

There were two models without ids: RolesUser,
ContentViewVersionEnvironment. Unique index for table
`content_view_version_environments` on columns `content_view_version_id`
and `environment_id` was added.

Org and environment deletion were not working. Missing ids were breaking
deletion of relations to these models.

This was probably causing more problems than the two mentioned.

https://bugzilla.redhat.com/show_bug.cgi?id=966396
(cherry picked from commit 2e933bf73bcb316ac9af36454a36c95692523629)