Community assembly in a model ecosystem