The crew of the Enterprise rush to stop an asteroid from colliding with a Federation world, but discover the asteroid is actually an inhabited generation ship.