In one of our apps db:migrate is not set to automatically run on every deploy to Heroku. It hasn't been Continuously Integrate yet.

We've ran into an issue and for debugging purposes I want to see when a particular migration ran.

Is this possible?

有帮助吗?

解决方案

Rails does not give such feature, when you run migration, time_stamp of migration is added in an array , to remember which migration is executed and which is not.

so what you can do is , log in to your database (psql if using postgres) and find created time or updated time of table manually .

this may help you do so https://stackoverflow.com/a/11868687/1970061 .

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top