質問するログイン新規登録

質問編集履歴

2

コードを見やすくしました

2018/07/19 06:46

投稿

lulu
lulu

スコア39

title CHANGED
File without changes
body CHANGED
@@ -8,6 +8,7 @@
8
8
  rails db:migrate/rails db:drop/ postgresの再インストールは試しました。
9
9
  助けてください
10
10
 
11
+ ```
11
12
  Processing by StaticPagesController#home as HTML
12
13
  Rendering 500 with exception: PG::UndefinedTable: ERROR: relation "sessions"does not exist
13
14
  LINE 8: WHERE a.attrelid = '"sessions"'::regclass
@@ -23,4 +24,5 @@
23
24
  AND a.attnum > 0 AND NOT a.attisdropped
24
25
  ORDER BY a.attnum
25
26
 
26
- Completed 500 Internal Server Error in 7ms (ActiveRecord: 1.2ms)
27
+ Completed 500 Internal Server Error in 7ms (ActiveRecord: 1.2ms)
28
+ ```

1

タイトルの修正

2018/07/19 06:46

投稿

lulu
lulu

スコア39

title CHANGED
@@ -1,1 +1,1 @@
1
- rails postgresのエラーでPG::UndefinedTable: ERROR: relation "sessions"does not exist
1
+ rails postgresのエラーでPG::UndefinedTable: ERROR: relation "sessions"does not existで困っている。
body CHANGED
@@ -1,6 +1,7 @@
1
1
  rails歴半年のものです。
2
2
  ある日、masterをpullしたら、localhost:3000に以下のエラーが出るようになりました。
3
- 同僚のpcでは動いており、私のmacだけ動きません。私のpostgresに問題があるようです。
3
+ 同僚のmacでは動いており、私のmacだけ動きません。私のpostgresに問題があるようです。
4
+ postgresは10.4です。
4
5
 
5
6
  postgresは10.4を使っており、extencionとしてpostgisを使っています。
6
7
  何か心当たりなどありますでしょうか?