Just migrated a legacy database into a rails compliant database – and wrote this nifty DSL script to help out….
The rake task generates the Hash data for the table creation, data insert and rollback scripts.
Once you run the rake task, paste the output into the migration modify the update table and column names – then run the migration.
Choice! Real good, 5.times do :turner.brain < InsideOut.new;