Upgrade rails and devise