# Schema Dump

**URL:** <https://www.ruby-forum.com/t/schema-dump/173679>\
**Category:** Rails\
**Created:** [August 13, 2009, 9:49am UTC](https://www.ruby-forum.com/t/schema-dump/173679 "2009-08-13T09:49:31Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![leogodin217](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/l/67e7ee/32.png) [@leogodin217](https://www.ruby-forum.com/u/leogodin217)\
**Post date:** [August 13, 2009, 9:49am UTC](https://www.ruby-forum.com/t/schema-dump/173679/1 "2009-08-13T09:49:31Z")

</div>

We recently upgraded to Rails 2.1. When dumping the schema ( rake  
db:schema:database) from our database I expected to see the command to  
create the schema\_migration table. Why is this table not in the schema  
dump file ? Also, the schema\_version is still in the file, but not in  
the database ?

---

<div class="post-metadata">

**Author:** ![leogodin217](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/l/67e7ee/32.png) [@leogodin217](https://www.ruby-forum.com/u/leogodin217)\
**Post date:** [August 13, 2009, 12:49pm UTC](https://www.ruby-forum.com/t/schema-dump/173679/2 "2009-08-13T12:49:51Z")

</div>

On Aug 12, 9:26 pm, Leo G [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:

> We recently upgraded to Rails 2.1. When dumping the schema ( rake  
> db:schema:database) from our database I expected to see the command to  
> create the schema\_migration table. Why is this table not in the schema  
> dump file ? Also, the schema\_version is still in the file, but not in  
> the database ?

the ruby schema loader knows that in needs to create the schema  
migrations table so why would it include it ?

Fred
