Ideology and Migration after the American Civil War