generator for migrations