Forum: Ruby on Rails any way to convert migration

Announcement (2017-05-07): is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see and for other Rails- und Ruby-related community platforms.
48ce8ddd55a13210b1069170f0daec35?d=identicon&s=25 Arun Agrawal (arunagw)
on 2007-06-22 09:20
(Received via mailing list)
Hi all,

I have a mysql dump for my app. i need to generate migration files
is there any way to convert mysql dump data into migration files.

Arun Agrawal
971708ecf1c0b3cada6cf98ea58611fd?d=identicon&s=25 Val (Guest)
on 2007-06-22 15:28
(Received via mailing list)
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:

This topic is locked and can not be replied to.