migration and rules