aeolusproject/conductor — pull request #133 by jistr (2012-10-19 09:16:33+00:00)
Title: Fix rake dc:setup crash

`rake dc:setup` used to crash with:

undefined method `find_by_username' for #

The issue is that User db table is defined by migration to have `login`
attribute, and this attribute is renamed to `username` by a later
migration. However, this change is not reflected in `User` class.

This commit reloads model classes after all migrations are done, which
fixes the issue.

Fixes RM3903.