static_db allows you to dump your database to YAML and load it back again. It is inspired by Rails’ fixtures.
It is available as a Ruby gem:
It is mainly intended for handling “structured data” in a static website. The dump format tries to play well with git diff, even in projects with multiple developers. To avoid id merge conflicts, I recommend to use UUIDs on all tables.
The companion project frozen_rails provides a full setup for this use case.