Created generator for migration