Updated migration templates to add indexes