Implemented generator for migration and initializer