質問編集履歴
1
スキーマを念の為、追記しました。
test
CHANGED
File without changes
|
test
CHANGED
@@ -270,6 +270,80 @@
|
|
270
270
|
|
271
271
|
```
|
272
272
|
|
273
|
+
/db/schema.rb
|
274
|
+
|
275
|
+
```rails
|
276
|
+
|
277
|
+
ActiveRecord::Schema.define(version: 2021_12_13_141259) do
|
278
|
+
|
279
|
+
|
280
|
+
|
281
|
+
create_table "shop_images", force: :cascade do |t|
|
282
|
+
|
283
|
+
t.integer "shop_id", null: false
|
284
|
+
|
285
|
+
t.integer "image_id", null: false
|
286
|
+
|
287
|
+
t.datetime "created_at", null: false
|
288
|
+
|
289
|
+
t.datetime "updated_at", null: false
|
290
|
+
|
291
|
+
t.index ["shop_id"], name: "index_shop_images_on_shop_id"
|
292
|
+
|
293
|
+
end
|
294
|
+
|
295
|
+
|
296
|
+
|
297
|
+
create_table "shops", force: :cascade do |t|
|
298
|
+
|
299
|
+
t.string "name", null: false
|
300
|
+
|
301
|
+
t.text "review", null: false
|
302
|
+
|
303
|
+
t.integer "user_id", null: false
|
304
|
+
|
305
|
+
t.datetime "created_at", null: false
|
306
|
+
|
307
|
+
t.datetime "updated_at", null: false
|
308
|
+
|
309
|
+
end
|
310
|
+
|
311
|
+
|
312
|
+
|
313
|
+
create_table "users", force: :cascade do |t|
|
314
|
+
|
315
|
+
t.string "email", default: "", null: false
|
316
|
+
|
317
|
+
t.string "encrypted_password", default: "", null: false
|
318
|
+
|
319
|
+
t.string "reset_password_token"
|
320
|
+
|
321
|
+
t.datetime "reset_password_sent_at"
|
322
|
+
|
323
|
+
t.datetime "remember_created_at"
|
324
|
+
|
325
|
+
t.string "full_name", null: false
|
326
|
+
|
327
|
+
t.string "nick_name", null: false
|
328
|
+
|
329
|
+
t.datetime "created_at", null: false
|
330
|
+
|
331
|
+
t.datetime "updated_at", null: false
|
332
|
+
|
333
|
+
t.index ["email"], name: "index_users_on_email", unique: true
|
334
|
+
|
335
|
+
t.index ["reset_password_token"], name: "index_users_on_reset_password_token", unique: true
|
336
|
+
|
337
|
+
end
|
338
|
+
|
339
|
+
|
340
|
+
|
341
|
+
end
|
342
|
+
|
343
|
+
|
344
|
+
|
345
|
+
```
|
346
|
+
|
273
347
|
|
274
348
|
|
275
349
|
以上、お力をお貸しいただけますでしょうか。
|