refactor the migrations files