Run migrations and recover log to solve travis error