My production rails application takes 167 seconds to run rake db:migrate. The sad part is that there are no migrations to run. I tried to condition the migration running on checking that there are pending migrations but then the check took just as long. The only "excuse" in my mind is that the db is not tiny, there are 1M records there, but I see no reason why that would matter at all. I looked in the log but there is nothing indicating anything going wrong. I am running with
- Ruby 2.2.0
- Rails 4.2.0
Does anyone have an idea why this is so, and whether there is anything to do about it?