Forum: Ruby on Rails How: From database to "schema.rb" file ?

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
460ead051b49c0b2a8e45e46252d4bda?d=identicon&s=25 Tom Ha (tom)
on 2009-03-06 14:15
Hi there!


Is there a way to get a complete/up-to-date "schema.rb" file, based on
just the database? (without using any migration files...)


===========================
Background:

1. I had stopped using migrations at some point in time and then have
modified my db "manually", using phpMyAdmin.

2. Now, I'd like to start using migrations again, since plugins often
"require" migrations.
===========================


Thanks for any comments on this!
Tom
A91bd6cef23eb3516245a092e196c4da?d=identicon&s=25 Maurício Linhares (mauricio)
on 2009-03-06 14:17
(Received via mailing list)
rake db:schema:dump

-
Maurício Linhares
http://alinhavado.wordpress.com/ (pt-br) | http://blog.codevader.com/
(en)



On Fri, Mar 6, 2009 at 10:15 AM, Tom Ha
460ead051b49c0b2a8e45e46252d4bda?d=identicon&s=25 Tom Ha (tom)
on 2009-03-06 14:22
Thanks a lot !
This topic is locked and can not be replied to.