migrations, model, and test work for mongodb -> postgres conversion