Forum: Ruby on Rails sql -> migrations ?

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.
JannaB (Guest)
on 2009-05-29 17:33
(Received via mailing list)
Is there a way to take a db schema (say, as sql statements) and
reverse that back into files to use for migrations? how do you handle
legacy db's -- do you have to go and write the migration files
yourself from scratch? -Janna B.
Roy P. (Guest)
on 2009-05-30 03:28
(Received via mailing list)
Try pointing your config/database.yml at your legacy db & run 'rake
db:schema:dump'.  That should dump the current schema out to


This topic is locked and can not be replied to.