質問編集履歴
2
schema.rb/ user model を追加しました.
test
CHANGED
File without changes
|
test
CHANGED
@@ -116,6 +116,22 @@
|
|
116
116
|
|
117
117
|
t.integer "receiver_id"
|
118
118
|
|
119
|
+
end
|
120
|
+
|
121
|
+
|
122
|
+
|
123
|
+
#deviseでモデルを作っている部分は割愛
|
124
|
+
|
125
|
+
create_table "users", force: :cascade do |t|
|
126
|
+
|
127
|
+
t.string "username", default: "", null: false
|
128
|
+
|
129
|
+
t.date "birthday"
|
130
|
+
|
131
|
+
t.datetime "received_at"
|
132
|
+
|
133
|
+
end
|
134
|
+
|
119
135
|
```
|
120
136
|
|
121
137
|
|
1
schema.rbを追加しました.
test
CHANGED
File without changes
|
test
CHANGED
@@ -90,6 +90,36 @@
|
|
90
90
|
|
91
91
|
|
92
92
|
|
93
|
+
|
94
|
+
|
95
|
+
**追加情報**
|
96
|
+
|
97
|
+
|
98
|
+
|
99
|
+
**schema.rb**
|
100
|
+
|
101
|
+
```
|
102
|
+
|
103
|
+
create_table "posts", force: :cascade do |t|
|
104
|
+
|
105
|
+
t.string "dear"
|
106
|
+
|
107
|
+
t.text "content"
|
108
|
+
|
109
|
+
t.string "from"
|
110
|
+
|
111
|
+
t.datetime "created_at", precision: 6, null: false
|
112
|
+
|
113
|
+
t.datetime "updated_at", precision: 6, null: false
|
114
|
+
|
115
|
+
t.integer "sender_id"
|
116
|
+
|
117
|
+
t.integer "receiver_id"
|
118
|
+
|
119
|
+
```
|
120
|
+
|
121
|
+
|
122
|
+
|
93
123
|
### 試したこと
|
94
124
|
|
95
125
|
|