Any way to convert migration

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

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

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs