Mephisto''s bootstrap task is what I looked at initially and based my
Kete
app''s bootstrap task on:
http://development.kete.net.nz/kete/repository/file/trunk/lib/tasks/bootstrap.rake
That simply uses fixtures. If you want to get a little more hands on (and
not delete existing data in the table), you can deal with your Rails models
directly from rake. Examples can be found in here:
http://development.kete.net.nz/kete/repository/file/trunk/lib/tasks/upgrade.rake
Cheers,
Walter
On Feb 6, 2008 11:44 PM, Thufir
<hawat.thufir-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:
>
> It seems that it''s possible to create a rake task to populate db
tables,
> this is what I want to accomplish and rake seems like the best tool.
> However, the only examples I found are rather complex.
>
> How can I get started on this, please?
>
>
>
> thanks,
>
> Thufir
>
>
> >
>
--~--~---------~--~----~------------~-------~--~----~
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-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
To unsubscribe from this group, send email to
rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---