質問編集履歴

1

schema.rbのordersテーブルの中身を確認してみました。

2020/07/09 07:15

投稿

atsushi0804
atsushi0804

スコア1

test CHANGED
File without changes
test CHANGED
@@ -191,3 +191,47 @@
191
191
  と=がなくなった状態になります。FactoryBotを何も書いていないのに上記のエラー文が出てしまうのはどういうことかわからずに困っています。
192
192
 
193
193
  どうかアドバイスを頂けますと助かります。お願いします。
194
+
195
+
196
+
197
+ ### 追記
198
+
199
+ schema.rbで確認しましたが、ordersテーブルにストリング型でしっかりとaddressが存在する状態です。
200
+
201
+
202
+
203
+ ```ここに言語を入力
204
+
205
+ create_table "orders", options: "ENGINE=InnoDB DEFAULT CHARSET=utf8", force: :cascade do |t|
206
+
207
+ t.bigint "seller_id", null: false
208
+
209
+ t.bigint "buyer_id", null: false
210
+
211
+ t.bigint "item_id", null: false
212
+
213
+ t.string "receiver_last_name"
214
+
215
+ t.string "receiver_first_name"
216
+
217
+ t.string "zipcode", null: false
218
+
219
+ t.string "prefecture", null: false
220
+
221
+ t.string "city", null: false
222
+
223
+ t.string "address", null: false
224
+
225
+ t.string "building"
226
+
227
+ t.datetime "created_at", null: false
228
+
229
+ t.datetime "updated_at", null: false
230
+
231
+ t.index ["buyer_id"], name: "index_orders_on_buyer_id"
232
+
233
+ t.index ["item_id"], name: "index_orders_on_item_id"
234
+
235
+ t.index ["seller_id"], name: "index_orders_on_seller_id"
236
+
237
+ ```