I’ve got some tables with fixed amounts of data in them (a “states”
table, for example). For tables like this I can easily put all of the
data in the fixture.
For general futzing purposes, and for those times I want to reload a
database from scratch outside of testing (for whatever reason), what’s
the best approach? I thought perhaps ActiveRecord::Base had something
built in to allow me to load a .yml file, but I don’t see it.
I realize I could redefine initialize in ActiveRecord::Base to do
special handling if the argument was a string ending in “.yml” or an IO
object, but I thought I would ask here first.