Rake That Data into A Pile of YAML
My friend, @milaniliev, pointed me to his very useful db:fixtures:dump rake task that allows for selectively dumping data from your database directly into YAML fixtures.
Update: It looks like this was also tackled in a different way by topfunky. He seems to have added a .to_fixture method to ActiveRecord::Base. I don’t think it accepts a WHERE clause, but that is probably easily patched.