I believe, converting of data to the seed.rb format is not an option? If so, the easiest way would be to write a rake task to use mysql or sqlite3 to upload your data. Here's the sample that I put together quickly: http://gist.github.com/279918 It replaces the standard db:seed with the SQL-based version.
- Aleksey On Jan 18, 6:31 pm, Ahmed Abdelsalam <li...@ruby-forum.com> wrote: > Hello, > > I'm developing an application, and I want to automatically load seed > data into database. The seed data exists in a SQL file (exported from > MySQL database). I want the application to load such data when I make > db:reset or db:migrate:reset or db:seed. > > Any help? > -- > Posted viahttp://www.ruby-forum.com/.
-- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-t...@googlegroups.com. To unsubscribe from this group, send email to rubyonrails-talk+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.