add migration method to generate migrations