How can I go about creating an image of a database schema used in a Rail app?
Have you tried the rake db: schema: dump
?
Actually, make sure your database.yml
file is referencing the database that you want to dump, and then run the command. It will take all tables and indexes in the database and then write it to schema.rb
.
Note that you are dumped at schema.rb
once; Otherwise, it can overwrite it.
Comments
Post a Comment