 			e.preventDefault();
 		});
 		$(".migrateLatest").on("click", function(e){
-			var version=$("#migrations").find(".migration").last().find(".version").html();
-			remoteSend({
-				"command": "migrateTo",
-				"version": version
+			remoteSend({
+				"command": "migrateToLatest"
 			});
 			e.preventDefault();
 		});

	function isCurrentMigration(version, latest){
		if(version == latest){
			return "currentVersion";
		}
	}
	function assignStatusClass(status, version, latest){
		if(status.length == 0){
			return "domigrate";

					var s="<div class='migration row " + isCurrentMigration(migration.VERSION, data.currentVersion)
						+ "'><div class='version column'>" + migration.VERSION + "</div>"
						+ "<div class='name column'>" + migration.NAME + "</div>"
						+ "<div class='actions column'>";
						if(migration.STATUS.length == 0){
							s+="<button class='migrate domigrate button-small button'><i class='fa fa-refresh'></i> Migrate To</button>";
						} else {
							s+="<button class='redo button-small button'><i class='fa fa-refresh'></i> Redo</button>";
							if(isCurrentMigration(migration.VERSION, data.currentVersion)	){
								s+="<button class='currentVersion button-small button'><i class='fa fa-refresh'></i> Current</button>";
							} else {
								s+="<button class='migrate migrated button-small button'><i class='fa fa-arrow-up'></i> Roll Back</button>";
							}
						}
						s+="</div></div>";
						ml=ml + s;
				}
				$("#migrationlist").html(ml);
