migrate rails and modify the index.html