ruby on rails - heroku run rake db:migrate:status down in heroku? -


when run heroku run rake db:migrate:status

i have last 4 migration down this

     20150916190326  add fields purchase        20150923012744  create friendly id slugs        20150923013732  add weight product        20150926012254  add stste purchase        20150930015516  add shipping rate purchase   down    20150930025547  add country purchase   down    20150930025742  add country again purchase   down    20150930031326  add countryy purchase   down    20150930042706  add countryyy purchase 

what should run make of them without deleting database in heroku?

step 1) check version numbers of migrations down using below command.

heroku run rake db:migrate:status

step 2) below command migrate table respective version numbers.

 heroku run rake db:migrate:up version= 20150930025547 

Comments

Popular posts from this blog

java - WARN : org.springframework.web.servlet.PageNotFound - No mapping found for HTTP request with URI [/board/] in DispatcherServlet with name 'appServlet' -

html - Outlook 2010 Anchor (url/address/link) -

android - How to create dynamically Fragment pager adapter -