1
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 3 years have passed since last update.

RailsTutorial2章→usersが表示されない

Last updated at Posted at 2020-08-08

症状

デプロイしたherokuアプリのURLは正常に開けるが、
末尾に/Usersをつけた際
『We're sorry, but something went wrong』と表示される

原因

マイグレートが上手くできていなかった

解決方法

リスト 2.4: データベースをマイグレートする
の実行コマンドを1から2に変更する

1.$ rails db:migrate

2.$ heroku run rake db:migrate

#なぜrails db:migrateだとダメだった?
調査中

1
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?