Require "devise/orm/active_record" before running migrations on boot as some migrations may refer to models (e.g., 20130320171946).
Achieved by initialising devise before migrations on boot.