theforeman/foreman — pull request #151 by skottler (2012-09-07 15:19:15+00:00)
Title: Initial tenant/location work

This is a mostly complete version of the code, but there are some architectural changes that need to be made before this is ready to merge. This is just to get some eyes on the code since the changes are pretty sweeping.

1. Move the relationship between objects (i.e. when you go to edit a domain and add tenants or location) to a single join table.
2. Ensure the ancestry hierarchy works properly and determine how to deal with how parameters are inherited between flat hierarchies. Reliant on #1.
3. A lot more tests need to be written. Each object that can have tenants and locations assigned should have its own set of tests.
4. Remove the the tenant_ids and location_ids columns from the `hosts` table - this will be fixed by #1.

There are probably some more pre-merge items to knock out, I will add those as I come across them.

@ohadlevy - can you take a look and provide some feedback when you get a chance?