# Table does not exist

**URL:** <https://www.ruby-forum.com/t/table-does-not-exist/172895>\
**Category:** Rails\
**Created:** [July 29, 2009, 4:46pm UTC](https://www.ruby-forum.com/t/table-does-not-exist/172895 "2009-07-29T16:46:23Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![RVince](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/r/4491bb/32.png) [@RVince](https://www.ruby-forum.com/u/RVince)\
**Post date:** [July 29, 2009, 4:46pm UTC](https://www.ruby-forum.com/t/table-does-not-exist/172895/1 "2009-07-29T16:46:23Z")

</div>

I am creating a db in rake, and I have it all set up in migrations. I  
notice that the schema.rb contains the code for creation of a  
parituclar table. However, when I rake it, I get “blah blah table does  
not exist.”

What does this mean? The db is set up (mysql) no tables are in it, and  
the schema.rb contains code to create it. Whats this about?

---

<div class="post-metadata">

**Author:** ![RVince](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/r/4491bb/32.png) [@RVince](https://www.ruby-forum.com/u/RVince)\
**Post date:** [July 29, 2009, 4:54pm UTC](https://www.ruby-forum.com/t/table-does-not-exist/172895/2 "2009-07-29T16:54:00Z")

</div>

Hey

could you post the full error message?

Before you do, try rake db:schema:dump

If you’re schema.rb is exactly how you want the db to be setup then  
it’s a quicker option than building a bunch of separate migrations

Gavin

> **[Ruby on Rails tips & Tutorials](https://handyrailstips.com/)**
>
> Ruby on Rails tips and tutorials

---

<div class="post-metadata">

**Author:** ![RVince](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/r/4491bb/32.png) [@RVince](https://www.ruby-forum.com/u/RVince)\
**Post date:** [July 29, 2009, 7:27pm UTC](https://www.ruby-forum.com/t/table-does-not-exist/172895/3 "2009-07-29T19:27:58Z")

</div>

On Jul 29, 10:09 am, RVince [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:

> I am creating a db in rake, and I have it all set up in migrations. I  
> notice that the schema.rb contains the code for creation of a  
> parituclar table. However, when I rake it, I get “blah blah table does  
> not exist.”

“blah blah table does not exist” is not anything like a standard error  
message.

Why don’t you post the whole “blah blah” message if you’re interested  
in help?
