Re: [Rails] From DB to migrations

2009-12-14 Thread Rick DeNatale
On Mon, Dec 14, 2009 at 4:43 PM, RVince  wrote:
> If I have an ancient app which uses a (MySQL) database because the db
> structure was NOT created by migrations -- is there a way I can go
> from the DB stricture to the migration files so that I could recreate
> the DB on a different machine with a different type of DB ? Thanks,
> RVince.

rake db:schema:dump
and
rake db:schema:load


-- 
Rick DeNatale

Blog: http://talklikeaduck.denhaven2.com/
Twitter: http://twitter.com/RickDeNatale
WWR: http://www.workingwithrails.com/person/9021-rick-denatale
LinkedIn: http://www.linkedin.com/in/rickdenatale

--

You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" group.
To post to this group, send email to rubyonrails-t...@googlegroups.com.
To unsubscribe from this group, send email to 
rubyonrails-talk+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en.




[Rails] From DB to migrations

2009-12-14 Thread RVince
If I have an ancient app which uses a (MySQL) database because the db
structure was NOT created by migrations -- is there a way I can go
from the DB stricture to the migration files so that I could recreate
the DB on a different machine with a different type of DB ? Thanks,
RVince.

--

You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" group.
To post to this group, send email to rubyonrails-t...@googlegroups.com.
To unsubscribe from this group, send email to 
rubyonrails-talk+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en.