On 11/13/07, Stephen Touset <[EMAIL PROTECTED]> wrote: > 1 ) What, then, is the preferred mechanism for "seed" data in the > database? Currently, many people use migrations to insert bootstrap > data. If schema.rb will be used for tasks like db:reset, none of this > data will be loaded.
I've written a simple rake task that loads any .rb files found within the RAILS_ROOT/db/fixtures/RAILS_ENV directory. I've bundled it up as a plugin if anyone else wants to try it out: http://code.google.com/p/db-populate/. README, examples, etc. to come soon. -- Josh Knowles phone: 509-979-1593 email: [EMAIL PROTECTED] web: http://joshknowles.com --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Core" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/rubyonrails-core?hl=en -~----------~----~----~----~------~----~------~--~---
