add a script to upgrade rails and mongoid