On Aug 13, 4:13 am, Rails List <[email protected]>
wrote:
> Frederick Cheung wrote:
> > On Aug 13, 9:01 am, Rails List <[email protected]>
> > wrote:
> >> by mistake i have deleted the contents of the db folder in an rails app.
> >> how do i recreate those db migration files?
>
> > restore them from source control :-)
>
> > if you just need the structure of the database then rake
> > db:schema:dump will dump that.
>
> > Fred
>
> Fred, thanks a lot. it has create the schema dump.  if I do db:migrate,
> will it create all the tables using my current connection parameters?

Um... no? If you need to create a db according to the dumped schema
(on another machine, I presume), you'd use "rake db:schema:dump".

And you are using source control, right? I hope?

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

Reply via email to