Cannot login after upgrade to 9.0

I have a gitlab-ce installation on Debian jessie with LDAP integration.

After upgrading to 9.0 I cannot login anymore. I had to remove the cookies to even get to the login page. When I try to login I get:

Could not authenticate you from Ldapmain because “Undefined method `ghost?’ for #user:0x007fb152d29050”.

What can I do to diagnose/fix this?

Marijn

Ok , found the solution here: https://gitlab.com/gitlab-org/gitlab-ce/issues/29957, had to run

sudo gitlab-rake db:migrate