How: From database to "schema.rb" file?


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…)


  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!


rake db:schema:dump

Maurício Linhares (pt-br) |

On Fri, Mar 6, 2009 at 10:15 AM, Tom Ha


Thanks a lot !