Forum: Ruby on Rails Best practice for initializing woriing data for development

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
Joshua S. (Guest)
on 2006-01-11 21:33
I'm getting tired of creating working data in my db just so that I can
mess it up while working on the code. I've been using Ruby code to
create initial working data, however my data model is getting complex
enough that it's becoming a pain to maintain this code. I've been
thinking about using YAML fixtures for this purpose, but there's no
obvious support for keeping separate fixtures for development and
testing.

I know I could construct the initial data by hand and then dump and
restore it, but that doesn't seem like the best way to go. I'm looking
for a solution where I could type something like "rake
load_working_data" and go from there.

Has anyone come up with a good solution for creating working data for
development?

thanks,
joshua susser
This topic is locked and can not be replied to.