create medium spec and model and migration