Fix migrations and travis build