質問編集履歴
4
記事修正
test
CHANGED
File without changes
|
test
CHANGED
@@ -126,9 +126,7 @@
|
|
126
126
|
|
127
127
|
```
|
128
128
|
|
129
|
-
以下のコマンドを実行してデータモデルを追加
|
130
|
-
|
131
|
-
$ rails generate migration add_activation_to_users activation_digest:string activated:boolean activated_at:datetime
|
129
|
+
$ rails generate migration add_activation_to_users activation_digest:string activated:boolean activated_at:datetimeを実行してデータモデルを追加
|
132
130
|
|
133
131
|
|
134
132
|
|
3
記事追加
test
CHANGED
File without changes
|
test
CHANGED
@@ -4,6 +4,12 @@
|
|
4
4
|
|
5
5
|
|
6
6
|
|
7
|
+
参考サイトURL
|
8
|
+
|
9
|
+
https://railstutorial.jp/chapters/account_activation?version=5.1#cha-account_activation
|
10
|
+
|
11
|
+
|
12
|
+
|
7
13
|
11章のリスト11.11、リスト11.12それぞれのソースコードに書き換えると
|
8
14
|
|
9
15
|
以下のようなエラーになります。
|
@@ -450,6 +456,6 @@
|
|
450
456
|
|
451
457
|
```
|
452
458
|
|
453
|
-
ちなみにrailsサーバの再立ち上げやリセットは行って
|
459
|
+
ちなみにrailsサーバの再立ち上げやリセット、ファイルの保存は行ってます。
|
454
460
|
|
455
461
|
宜しくお願い致します。
|
2
コマンドの修正
test
CHANGED
File without changes
|
test
CHANGED
@@ -122,9 +122,7 @@
|
|
122
122
|
|
123
123
|
以下のコマンドを実行してデータモデルを追加
|
124
124
|
|
125
|
-
$ rails generate migration add_activation_to_users \
|
126
|
-
|
127
|
-
|
125
|
+
$ rails generate migration add_activation_to_users activation_digest:string activated:boolean activated_at:datetime
|
128
126
|
|
129
127
|
|
130
128
|
|
1
マイグレーションコマンドの内容を追加
test
CHANGED
File without changes
|
test
CHANGED
@@ -120,6 +120,14 @@
|
|
120
120
|
|
121
121
|
```
|
122
122
|
|
123
|
+
以下のコマンドを実行してデータモデルを追加
|
124
|
+
|
125
|
+
$ rails generate migration add_activation_to_users \
|
126
|
+
|
127
|
+
> activation_digest:string activated:boolean activated_at:datetime
|
128
|
+
|
129
|
+
|
130
|
+
|
123
131
|
db/migrate/[timestamp]_add_activation_to_users.rb
|
124
132
|
|
125
133
|
```ここに言語を入力
|