List Info

Thread: Re: Scaffolding Without Migration? - Porting CakePHP App To




Re: Scaffolding Without Migration? - Porting CakePHP App To
country flaguser name
Germany
2008-02-23 14:00:47
Baz L wrote:
> Good day all.

> Any ideas anyone?
> ThanX in advance.

Please check out 'rake --tasks',  one of the tasks is 'rake

db:schema:dump' which will take your existing schema and
write a file 
entitled 'db/schema.rb'.  You can then take this file and
easily change 
it's name to: 'db/migrate/001_initial.rb' and you are off to
the races..

prior to doing this make sure your config/database.yaml file
is pointing 
to the correct db..

ohh.. and please make a dump of your database or make sure
you have a 
backup prior to doing ANYTHING!!!  

hth

ilan

-- 
Posted via http://www.ruby-forum.com
/.

--~--~---------~--~----~------------~-------~--~----~
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-talkgooglegroups.com
To unsubscribe from this group, send email to
rubyonrails-talk-unsubscribegooglegroups.com
For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---


[1]

about | contact  Other archives ( Real Estate discussion Medical topics )