theforeman/foreman — pull request #522 by isratrade (2013-04-15 09:44:03+00:00)
Title: fixes #2400 add foreign keys to database migrations

The migration will fail if there are orphaned foreign keys.

Note, there is no foreign keys on the database level for polymorphic associations.