generate group model and migration