Remove dependency on Rails in mongration task.