error when first running migrations

fixes #266