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

質問編集履歴

1

誤字修正

2021/04/09 08:29

投稿

koukinagano
koukinagano

スコア1

title CHANGED
File without changes
body CHANGED
@@ -47,7 +47,7 @@
47
47
  Migrations are pending. To resolve this issue, run: rails db:migrate RAILS_ENV=development
48
48
  ```
49
49
  ###行ったこと
50
- ターミナルのエラーにからColumn `user_id` on table `items` does not match column `id` on `users`, which has type `bigint(20)`. To resolve this issue, change the type of the `user_id` column on `items` to be :bigint. (For example `t.bigint :user_id`).というのがあるがこの場合reference型で現象が起こるまでは表示できていたので問題なさそうなので特に何もしていません。
50
+ ターミナルのエラーにColumn `user_id` on table `items` does not match column `id` on `users`, which has type `bigint(20)`. To resolve this issue, change the type of the `user_id` column on `items` to be :bigint. (For example `t.bigint :user_id`).というのがあるがこの場合reference型で現象が起こるまでは表示できていたので問題なさそうなので特に何もしていません。
51
51
 
52
52
  googleタブのエラーの方はエラー画面にある”Run pending migrations”のグレーのボタンを押す
53
53
  エラー文の指示通りに”rails db:migrate RAILS_ENV=development”を実行とあったので押してみたが、