Home>
I want to solve

Unable to seed db on Heroku. After migrating, I entered the following command.

heroku run rails db: seed

After the result of the process came out for a while, the following sentence came out.

You have 1 pending migration:
  20201012043041 CreateResults
Run `rails db: migrate` to update your database then try again.
What I checked

・ [Ruby on Rails] rails db: When you can't migrate ...
https://qiita.com/yuya004847yy/items/6a4b9d4d541bb094203e

What I tried and the result

I entered the following:

rails db: migrate
heroku run rails db: migrate

However, seeding did not change. Isn't the Results table migrated?

  • Answer # 1

    Heroku had ids added every 10th.
    With reference to the following, I operated the DB from Sequel Pro and completed it.
    https://t.co/OdM9gplcV2