Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
FIX: Minimize database access following
db:migrate
The upgrade process was triggering the database migrations, and then calling `User.find()`. This is problematic because the `users` table may have been changed by the migrations, and accessing it with the 'old code' will raise an exception. This commit tweaks the Upgrader so that it loads the user object into memory **before** running database migrations.
- Loading branch information