adds primaries migration and model and model test