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
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
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: Revolution On Rails: Data Loaders in Migrations
Val