update migration and purchase controller example