Heroku run rake db:migrate results in no change in the database, app restarted several times

前端 未结 4 669
不思量自难忘°
不思量自难忘° 2020-12-14 09:37

I have a problem with pushing my migrations to the production database.

The issue:

  1. I\'ve altered database schema by adding 1 column.
  2. I\'ve

4条回答
  •  借酒劲吻你
    2020-12-14 10:23

    My two cents based on my experience: I thought that heroku run db:migrate also migrated db content into production. No! Only structure. So in my case, log in was not working in production because there were no users in it. I had to sign test user up again and then it worked. Hope it helps rookies like me out there

提交回复
热议问题