# Rake DB:Create works, but not DB:Migrate, Please help

**URL:** <https://www.ruby-forum.com/t/rake-db-create-works-but-not-db-migrate-please-help/167316>\
**Category:** Deployment\
**Created:** [May 6, 2009, 5:42pm UTC](https://www.ruby-forum.com/t/rake-db-create-works-but-not-db-migrate-please-help/167316 "2009-05-06T17:42:54Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![naturalkid](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/n/dec6dc/32.png) [@naturalkid](https://www.ruby-forum.com/u/naturalkid)\
**Post date:** [May 6, 2009, 5:42pm UTC](https://www.ruby-forum.com/t/rake-db-create-works-but-not-db-migrate-please-help/167316/1 "2009-05-06T17:42:54Z")

</div>

Hi,

Having a Postgres related database rake error, wonder if you can give me  
some suggestion to fix this issue:

Environment:

Ubuntu Desktop (9.04) 64-bit  
Postgres SQL 64-Bit (latest official release)  
Ruby-pg installed.

Error:

I can successfully execute Rake db:create and see the database get  
created.  
But, Rake db:migrate returned an database not found error.

Regards,

JB

---

<div class="post-metadata">

**Author:** ![naturalkid](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/n/dec6dc/32.png) [@naturalkid](https://www.ruby-forum.com/u/naturalkid)\
**Post date:** [July 7, 2009, 1:29pm UTC](https://www.ruby-forum.com/t/rake-db-create-works-but-not-db-migrate-please-help/167316/2 "2009-07-07T13:29:14Z")

</div>

JB,

Can you paste the full rake trace here??

Thanks,  
Kilari.  
[http://kilari.co.in](http://kilari.co.in)

Jb Li wrote:

> Hi,
> 
> Having a Postgres related database rake error, wonder if you can give me  
> some suggestion to fix this issue:
> 
> Environment:
> 
> Ubuntu Desktop (9.04) 64-bit  
> Postgres SQL 64-Bit (latest official release)  
> Ruby-pg installed.
> 
> Error:
> 
> I can successfully execute Rake db:create and see the database get  
> created.  
> But, Rake db:migrate returned an database not found error.
> 
> Regards,
> 
> JB
