Updated migration template in order to make permissions.name unique