turn migrations into a return of callbacks