Katello/katello — pull request #2349 by pitr-ch (2013-05-22 09:21:05+00:00)
Title: 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.

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.