Fix migrations

Closes #89.