apply opt_generator to updating migration