2010/1/18 Ahmed Abdelsalam <li...@ruby-forum.com>:
> 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.

When you do rake db:seed it runs db/seeds.rb, so you can do what you
want in there.  If you are not using latest Rails you might need to
check this works for you as it was only recently introduced.

Colin
-- 
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.


Reply via email to