CouchDB has built in document versioning, but you can't rely on it for version control. This is an implementation of a version-as-attachments approach created by @jchris.
Matt Parker, Gary Cheong
gem "memories", "~> 0.3.6"