質問編集履歴

2

追記

2019/03/23 20:01

投稿

Romay
Romay

スコア40

test CHANGED
File without changes
test CHANGED
@@ -431,3 +431,11 @@
431
431
 
432
432
 
433
433
  ```
434
+
435
+
436
+
437
+ こちらの記事にあるように、rails 4.2.6から rails 4.2.8にupdateしてみましたがエラーは解決しませんでした。。。
438
+
439
+
440
+
441
+ [Ruby 2.4 and Rails 4 stack level too deep (SystemStackError)](https://stackoverflow.com/questions/41504106/ruby-2-4-and-rails-4-stack-level-too-deep-systemstackerror)

1

追記

2019/03/23 20:01

投稿

Romay
Romay

スコア40

test CHANGED
File without changes
test CHANGED
@@ -299,3 +299,135 @@
299
299
 
300
300
 
301
301
  エラー文から手がかりが掴めずに困っています。
302
+
303
+
304
+
305
+ ### 追記
306
+
307
+
308
+
309
+ schema.rb
310
+
311
+ ```ruby
312
+
313
+ # encoding: UTF-8
314
+
315
+ # This file is auto-generated from the current state of the database. Instead
316
+
317
+ # of editing this file, please use the migrations feature of Active Record to
318
+
319
+ # incrementally modify your database, and then regenerate this schema definition.
320
+
321
+ #
322
+
323
+ # Note that this schema.rb definition is the authoritative source for your
324
+
325
+ # database schema. If you need to create the application database on another
326
+
327
+ # system, you should be using db:schema:load, not running all the migrations
328
+
329
+ # from scratch. The latter is a flawed and unsustainable approach (the more migrations
330
+
331
+ # you'll amass, the slower it'll run and the greater likelihood for issues).
332
+
333
+ #
334
+
335
+ # It's strongly recommended that you check this file into your version control system.
336
+
337
+
338
+
339
+ ActiveRecord::Schema.define(version: 20190321185800) do
340
+
341
+
342
+
343
+ create_table "images", force: :cascade do |t|
344
+
345
+ t.string "image", limit: 255
346
+
347
+ t.integer "user_id", limit: 4
348
+
349
+ t.datetime "created_at", null: false
350
+
351
+ t.datetime "updated_at", null: false
352
+
353
+ end
354
+
355
+
356
+
357
+ create_table "items", force: :cascade do |t|
358
+
359
+ t.integer "user_id", limit: 4
360
+
361
+ t.text "text", limit: 65535
362
+
363
+ t.datetime "created_at", null: false
364
+
365
+ t.datetime "updated_at", null: false
366
+
367
+ t.boolean "check", default: false
368
+
369
+ t.datetime "deleted_at"
370
+
371
+ end
372
+
373
+
374
+
375
+ add_index "items", ["deleted_at"], name: "index_items_on_deleted_at", using: :btree
376
+
377
+
378
+
379
+ create_table "users", force: :cascade do |t|
380
+
381
+ t.string "email", limit: 255, default: "", null: false
382
+
383
+ t.string "encrypted_password", limit: 255, default: "", null: false
384
+
385
+ t.string "reset_password_token", limit: 255
386
+
387
+ t.datetime "reset_password_sent_at"
388
+
389
+ t.datetime "remember_created_at"
390
+
391
+ t.datetime "created_at", null: false
392
+
393
+ t.datetime "updated_at", null: false
394
+
395
+ t.string "uid", limit: 255
396
+
397
+ t.string "provider", limit: 255
398
+
399
+ t.string "avatar_file_name", limit: 255
400
+
401
+ t.string "avatar_content_type", limit: 255
402
+
403
+ t.integer "avatar_file_size", limit: 8
404
+
405
+ t.datetime "avatar_updated_at"
406
+
407
+ t.string "nickname", limit: 255
408
+
409
+ t.string "description", limit: 255
410
+
411
+ t.string "twitter", limit: 255
412
+
413
+ t.string "instagram", limit: 255
414
+
415
+ t.string "friendly_url", limit: 255
416
+
417
+ end
418
+
419
+
420
+
421
+ add_index "users", ["email"], name: "index_users_on_email", unique: true, using: :btree
422
+
423
+ add_index "users", ["friendly_url"], name: "index_users_on_friendly_url", unique: true, using: :btree
424
+
425
+ add_index "users", ["reset_password_token"], name: "index_users_on_reset_password_token", unique: true, using: :btree
426
+
427
+
428
+
429
+ end
430
+
431
+
432
+
433
+ ```