hook migrations