fixed the rake / migrate issue by moving require /app below the active record and rake