Adding history function in module owmigration