Ruby on rails 如何获取heroku中上次迁移运行的次数?
我试图在heroku上调试我的应用程序,但似乎有一个或多个迁移没有运行。在不手动完成每次迁移的情况下,我试图找出上次运行的迁移 环境:rails,postgresql,来自终端:Ruby on rails 如何获取heroku中上次迁移运行的次数?,ruby-on-rails,postgresql,heroku,Ruby On Rails,Postgresql,Heroku,我试图在heroku上调试我的应用程序,但似乎有一个或多个迁移没有运行。在不手动完成每次迁移的情况下,我试图找出上次运行的迁移 环境:rails,postgresql,来自终端: heroku pg:psql --app app_name db_name select * from schema_migrations; 查找最后一个条目 另一种方式。。。从终点站 heroku run console --app app_name class SchemaMigration<Ac
heroku pg:psql --app app_name db_name
select * from schema_migrations;
查找最后一个条目
另一种方式。。。从终点站
heroku run console --app app_name
class SchemaMigration<ActiveRecord::Base
end
SchemaMigration.last