質問編集履歴

1

rails db:migrate:statusを実行した際の表示を追記しました。

2018/10/24 22:15

投稿

ayachika
ayachika

スコア36

test CHANGED
File without changes
test CHANGED
@@ -97,3 +97,41 @@
97
97
  その他サーバーをいったん終了させたりなどしてみましたが、エラーから抜け出せません。
98
98
 
99
99
  ご存知の方、ご指導いただけると幸いです。
100
+
101
+
102
+
103
+ (追記)troch様回答に対して
104
+
105
+ rails db:migrate:status
106
+
107
+ を実行したところ、以下のような表示がされました。
108
+
109
+
110
+
111
+ ```
112
+
113
+ database: /home/ec2-user/environment/kyounogohan/db/development.sqlite3
114
+
115
+ Status Migration ID Migration Name
116
+
117
+ -------------------------------------------------- up 20180830222526 Create posts
118
+
119
+ up 20180906214631 Create comments up 20180907133239 Create tags
120
+
121
+ up 20180907133339 Create post tag relations up 20180913112749 Add picture to posts
122
+
123
+ up 20180916141115 Create users
124
+
125
+ up 20180917023819 Add index to users email
126
+
127
+ up 20180917060516 Add password digest to users
128
+
129
+ up 20180925102403 Add remember digest to users
130
+
131
+ down 20181010060333 Add user id to posts
132
+
133
+ down 20181016133724 Create favorites
134
+
135
+ ```
136
+
137
+ よろしくお願いいたします。