LoginSignup
0
0

More than 3 years have passed since last update.

rails チュートリアル2週目~ヘルスケアwebサービスを自分で作る医者の日記~

Posted at

2章最後でつまづく

We're sorry, but something went wrong.
If you are the application owner check the logs for more information.
heroku run rails db:migrate

するもだめ

ログ確認すると

2020-02-04T11:59:16.635000+00:00 heroku[router]: at=info method=GET path="/" host=hidden-ravine-49191.herokuapp.com request_id=309bfa62-5483-4e2d-84c9-2e306989f7d0 fwd="118.109.109.117" dyno=web.1 connect=0ms service=13ms status=500 bytes=1827 protocol=https
2020-02-04T11:59:16.622565+00:00 app[web.1]: I, [2020-02-04T11:59:16.622454 #4] INFO -- : [309bfa62-5483-4e2d-84c9-2e306989f7d0] Started GET "/" for 118.109.109.117 at 2020-02-04 11:59:16 +0000
2020-02-04T11:59:16.623211+00:00 app[web.1]: I, [2020-02-04T11:59:16.623135 #4] INFO -- : [309bfa62-5483-4e2d-84c9-2e306989f7d0] Processing by UsersController#index as HTML
2020-02-04T11:59:16.623867+00:00 app[web.1]: I, [2020-02-04T11:59:16.623790 #4] INFO -- : [309bfa62-5483-4e2d-84c9-2e306989f7d0] Rendering users/index.html.erb within layouts/application
2020-02-04T11:59:16.628739+00:00 app[web.1]: D, [2020-02-04T11:59:16.628649 #4] DEBUG -- : [309bfa62-5483-4e2d-84c9-2e306989f7d0] User Load (1.4ms) SELECT "users".* FROM "users"
2020-02-04T11:59:16.629812+00:00 app[web.1]: I, [2020-02-04T11:59:16.629733 #4] INFO -- : [309bfa62-5483-4e2d-84c9-2e306989f7d0] Rendered users/index.html.erb within layouts/application (5.8ms)
2020-02-04T11:59:16.630567+00:00 app[web.1]: I, [2020-02-04T11:59:16.630487 #4] INFO -- : [309bfa62-5483-4e2d-84c9-2e306989f7d0] Completed 500 Internal Server Error in 7ms (ActiveRecord: 1.4ms)
2020-02-04T11:59:16.631974+00:00 app[web.1]: F, [2020-02-04T11:59:16.631894 #4] FATAL -- : [309bfa62-5483-4e2d-84c9-2e306989f7d0]
2020-02-04T11:59:16.632530+00:00 app[web.1]: F, [2020-02-04T11:59:16.632446 #4] FATAL -- : [309bfa62-5483-4e2d-84c9-2e306989f7d0] ActionView::Template::Error (PG::UndefinedTable: ERROR: relation "users" does not exist
2020-02-04T11:59:16.632535+00:00 app[web.1]: LINE 1: SELECT "users".* FROM "users"
2020-02-04T11:59:16.632538+00:00 app[web.1]: ^
2020-02-04T11:59:16.632541+00:00 app[web.1]: : SELECT "users".* FROM "users"):
2020-02-04T11:59:16.632798+00:00 app[web.1]: F, [2020-02-04T11:59:16.632721 #4] FATAL -- : [309bfa62-5483-4e2d-84c9-2e306989f7d0] 12: </thead>
2020-02-04T11:59:16.632801+00:00 app[web.1]: [309bfa62-5483-4e2d-84c9-2e306989f7d0] 13:
2020-02-04T11:59:16.632804+00:00 app[web.1]: [309bfa62-5483-4e2d-84c9-2e306989f7d0] 14: <tbody>
2020-02-04T11:59:16.632807+00:00 app[web.1]: [309bfa62-5483-4e2d-84c9-2e306989f7d0] 15: <% @users.each do |user| %>
2020-02-04T11:59:16.632810+00:00 app[web.1]: [309bfa62-5483-4e2d-84c9-2e306989f7d0] 16: <tr>
2020-02-04T11:59:16.632812+00:00 app[web.1]: [309bfa62-5483-4e2d-84c9-2e306989f7d0] 17: <td><%= user.name %></td>
2020-02-04T11:59:16.632814+00:00 app[web.1]: [309bfa62-5483-4e2d-84c9-2e306989f7d0] 18: <td><%= user.email %></td>
2020-02-04T11:59:16.632921+00:00 app[web.1]: F, [2020-02-04T11:59:16.632847 #4] FATAL -- : [309bfa62-5483-4e2d-84c9-2e306989f7d0]
2020-02-04T11:59:16.633036+00:00 app[web.1]: F, [2020-02-04T11:59:16.632965 #4] FATAL -- : [309bfa62-5483-4e2d-84c9-2e306989f7d0] app/views/users/index.html.erb:15:in `_app_views_users_index_html_erb__912488948079837038_47098446139840'
^C

よくわからない。

とりあえず3章へいく

0
0
1

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
0
0