ruby on rails - how to get number of last migration run in heroku? -


i'm trying debug app on heroku , seems 1 or more migrations didn't run. without going through each migration manually i'm trying figure out migration last 1 run.

environment: rails, postgresql

from terminal:

 heroku pg:psql --app app_name db_name  select * schema_migrations;  

look last entry

another way... terminal

 heroku run console --app app_name  class schemamigration<activerecord::base  end  

then write

 schemamigration.last 

Comments

Popular posts from this blog

apache - PHP Soap issue while content length is larger -

asynchronous - Python asyncio task got bad yield -

javascript - Complete OpenIDConnect auth when requesting via Ajax -