debugged model and migration skeltons