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

質問編集履歴

1

誤解を防ぐ文章の修正

2019/12/24 09:06

投稿

yamada_yuuki
yamada_yuuki

スコア100

title CHANGED
File without changes
body CHANGED
@@ -1,5 +1,5 @@
1
1
  rails6にアップデートをしてから、Action Textを試したのですが上手くできません。もしかしたら、Action Textは関係なくモデルの問題かもしれませんがよろしくおねがいしますm(_ _)m。
2
- ```error
2
+ ```migrateerror
3
3
  rails aborted!
4
4
  StandardError: An error has occurred, this and all later migrations canceled:
5
5
 
@@ -22,10 +22,25 @@
22
22
  Tasks: TOP => db:migrate
23
23
  (See full trace by running task with --trace)
24
24
  ```
25
+ マイグレーション実行時のエラーです。
25
26
  なぜかファイルはもうある、的なことが書かれていますがマイグレーションファイルを見たところactive_storage_blobsというファイルは今回作ったものしかありませんでした。
26
27
 
28
+ ```Terminalerror
29
+ Started GET "/samples/new" for ::1 at 2019-12-24 18:00:34 +0900
30
+ (1.2ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
27
31
 
32
+ ActiveRecord::PendingMigrationError (
28
33
 
34
+ Migrations are pending. To resolve this issue, run:
35
+
36
+ rails db:migrate RAILS_ENV=development
37
+
38
+ ):
39
+
40
+ (省略)
41
+ ```
42
+
43
+
29
44
  ```railsactiontextinstall
30
45
  DEPRECATION WARNING: Single arity template handlers are deprecated. Template handlers must
31
46
  now accept two parameters, the view object and the source for the view object.