If it is just schema definition, you can load it to the DB, run ''rake
db:schema:dump'', and to copy/modify db/schema.rb to be your first
migration. If there is data, you can use DataLoader to load your SQL
directly from a migration:
http://revolutiononrails.blogspot.com/2007/02/data-loaders-in-migrations.html
Val
On Jun 22, 3:19 am, "Arun Agrawal"
<arunagraw...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
wrote:> Hi all,
>
> I have a mysql dump for my app. i need to generate migration files through
> it.
> is there any way to convert mysql dump data into migration files.
>
> reply
> Thanks
> --
> Arun Agrawal
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---