質問編集履歴

1

編集・追記依頼に関する情報です。

2019/03/26 23:22

投稿

mifne
mifne

スコア20

test CHANGED
File without changes
test CHANGED
@@ -83,3 +83,39 @@
83
83
  **どうしたらいいですか?
84
84
 
85
85
  教えてください**
86
+
87
+
88
+
89
+ #追記
90
+
91
+ これが、/db/migrate/20190325084941_create_users.rbです。
92
+
93
+ 何か問題はありませんか?
94
+
95
+ ```ruby
96
+
97
+ class CreateUsers < ActiveRecord::Migration[5.2]
98
+
99
+ def change
100
+
101
+ create_table :users do |t|
102
+
103
+ t.string :name
104
+
105
+ t.string :username
106
+
107
+ t.username :location
108
+
109
+ t.text :about
110
+
111
+
112
+
113
+ t.timestamps
114
+
115
+ end
116
+
117
+ end
118
+
119
+ end
120
+
121
+ ```