質問するログイン新規登録

質問編集履歴

1

schema.rbの追加

2020/04/29 12:43

投稿

msickpaler
msickpaler

スコア14

title CHANGED
File without changes
body CHANGED
@@ -63,6 +63,54 @@
63
63
  end
64
64
  ```
65
65
 
66
+ ######db/schema.rb
67
+ ```ここに言語を入力
68
+ # This file is auto-generated from the current state of the database. Instead
69
+ # of editing this file, please use the migrations feature of Active Record to
70
+ # incrementally modify your database, and then regenerate this schema definition.
71
+ #
72
+ # This file is the source Rails uses to define your schema when running `rails
73
+ # db:schema:load`. When creating a new database, `rails db:schema:load` tends to
74
+ # be faster and is potentially less error prone than running all of your
75
+ # migrations from scratch. Old migrations may fail to apply correctly if those
76
+ # migrations use external dependencies or application code.
77
+ #
78
+ # It's strongly recommended that you check this file into your version control system.
79
+
80
+ ActiveRecord::Schema.define(version: 2020_04_11_075604) do
81
+
82
+ create_table "users", options: "ENGINE=InnoDB DEFAULT CHARSET=utf8mb4", force: :cascade do |t|
83
+ t.string "provider", default: "email", null: false
84
+ t.string "uid", default: "", null: false
85
+ t.string "name"
86
+ t.string "image"
87
+ t.string "email"
88
+ t.string "encrypted_password", default: "", null: false
89
+ t.string "reset_password_token"
90
+ t.datetime "reset_password_sent_at"
91
+ t.boolean "allow_password_change", default: false
92
+ t.datetime "remember_created_at"
93
+ t.string "confirmation_token"
94
+ t.datetime "confirmed_at"
95
+ t.datetime "confirmation_sent_at"
96
+ t.string "unconfirmed_email"
97
+ t.integer "sign_in_count", default: 0, null: false
98
+ t.datetime "current_sign_in_at"
99
+ t.datetime "last_sign_in_at"
100
+ t.string "current_sign_in_ip"
101
+ t.string "last_sign_in_ip"
102
+ t.text "tokens"
103
+ t.datetime "created_at", precision: 6, null: false
104
+ t.datetime "updated_at", precision: 6, null: false
105
+ t.index ["confirmation_token"], name: "index_users_on_confirmation_token", unique: true
106
+ t.index ["email"], name: "index_users_on_email", unique: true
107
+ t.index ["reset_password_token"], name: "index_users_on_reset_password_token", unique: true
108
+ t.index ["uid", "provider"], name: "index_users_on_uid_and_provider", unique: true
109
+ end
110
+
111
+ end
112
+
113
+ ```
66
114
  ### 試したこと
67
115
 
68
116
  - テスト環境のDBのデータを初期化しました。その後にテストを行ったので、データがロールバックされていない訳ではありません。