I'd like to write a Rake task that will load some development data for my app so I can see what the design looks like in the browser with some data populated in there. I've tried hacking together something using ActiveRecord and the Faker gem, but I'm having a hard time keeping it simple and practical. It quickly turns unwieldy.
Problem is the relationships among classes is fairly complex.
Just to give an idea of what it's like, here's a simplified version of part of the layout...
assets
------
make
model
serial_number
asset_type_id
asset_types
-----------
general_type
specific_type
attribute_names
---------------
asset_id
name
attribute_values
----------------
value
asset_id
attribute_name_id
Also have users
and roles
and a bunch of others.
Any suggestions? Helpful gems I should know about?
One thing to add... It would be nice if the data made sense. E.g. if the asset type was "computer" the make was "Dell" etc. though that isn't strictly necessary.