According to the documentation,
By default, the Versioning bundle will track history for all documents and never purge old revisions.
It turns out that for the embedded database, the versioning configuration document must be added.
using (var session = Store.OpenSession())
{
session.Store(new
{
Exclude = false,
Id = "Raven/Versioning/DefaultConfiguration"
});
session.SaveChanges();
}
This code is in the linked question, but I didn't add it originally after reading about the default configuration in the online documentation. As it turns out, this document must be added for versioning to work.