# Rake db:migrate confusion following Cucumber upgrade

**URL:** <https://www.ruby-forum.com/t/rake-db-migrate-confusion-following-cucumber-upgrade/171796>\
**Category:** Rails\
**Created:** [July 9, 2009, 12:10pm UTC](https://www.ruby-forum.com/t/rake-db-migrate-confusion-following-cucumber-upgrade/171796 "2009-07-09T12:10:11Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![mikej](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/m/a9a28c/32.png) [@mikej](https://www.ruby-forum.com/u/mikej)\
**Post date:** [July 9, 2009, 12:10pm UTC](https://www.ruby-forum.com/t/rake-db-migrate-confusion-following-cucumber-upgrade/171796/1 "2009-07-09T12:10:11Z")

</div>

I recently upgraded Cucumber gem from 0.1.16 to 0.3.11. I ran ruby  
script/generate cucumber.

When I ran rake features I received an error telling me I had pending  
migrations and should run rake db:migrate. I ran rake db:migrate  
despite fact that my db is up to date. I was confused that the  
migrations ran from the beginning. However the migrations seem to  
have no effect on my database. Eventually an error came up that a  
table already exists. All the tables already exist.

In the log an early error Error: Table ‘schema\_info’ already exists:  
CREATE TABLE `schema_info`. However, my migration number is stored in  
schema\_migrations.

I’m having real trouble making sense of this. I would be very  
grateful is someone could suggest some debugging techniques. I’ve  
tried using --trace, but this does not help.

Many thanks,

Mike

---

<div class="post-metadata">

**Author:** ![mikej](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/m/a9a28c/32.png) [@mikej](https://www.ruby-forum.com/u/mikej)\
**Post date:** [July 9, 2009, 12:19pm UTC](https://www.ruby-forum.com/t/rake-db-migrate-confusion-following-cucumber-upgrade/171796/2 "2009-07-09T12:19:38Z")

</div>

Try erasing the db. rake db:migrate VERSION=0

---

<div class="post-metadata">

**Author:** ![mikej](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/m/a9a28c/32.png) [@mikej](https://www.ruby-forum.com/u/mikej)\
**Post date:** [July 9, 2009, 12:20pm UTC](https://www.ruby-forum.com/t/rake-db-migrate-confusion-following-cucumber-upgrade/171796/3 "2009-07-09T12:20:40Z")

</div>

Sean S. wrote:

> Try erasing the db. rake db:migrate VERSION=0  
> Then run rake db:migrate
