Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

Ruby

Migrate Status on Heroku

I am having a problem with my app on Heroku.

When I run

heroku run rake db:migrate:status

it shows 5 of my migrations with only 2 of them saying up status and the other 3 three say down status.

How do i get the other three to be up. I ran

heroku run rake db:migrate

what step am i missing?

Thanks.

1 Answer

This resolved my problem

heroku run rake db:setup

Then

heroku run rake db:migrate:reset

Finally my migrate passes

heroku run rake db:migrate

Then i restarted heroku

heroku restart

My app works as normal