Working migration with sample code