generate models and migrate