質問編集履歴

1

schema.rbの追加

2020/04/29 12:43

投稿

msickpaler
msickpaler

スコア14

test CHANGED
File without changes
test CHANGED
@@ -128,6 +128,102 @@
128
128
 
129
129
 
130
130
 
131
+ ######db/schema.rb
132
+
133
+ ```ここに言語を入力
134
+
135
+ # This file is auto-generated from the current state of the database. Instead
136
+
137
+ # of editing this file, please use the migrations feature of Active Record to
138
+
139
+ # incrementally modify your database, and then regenerate this schema definition.
140
+
141
+ #
142
+
143
+ # This file is the source Rails uses to define your schema when running `rails
144
+
145
+ # db:schema:load`. When creating a new database, `rails db:schema:load` tends to
146
+
147
+ # be faster and is potentially less error prone than running all of your
148
+
149
+ # migrations from scratch. Old migrations may fail to apply correctly if those
150
+
151
+ # migrations use external dependencies or application code.
152
+
153
+ #
154
+
155
+ # It's strongly recommended that you check this file into your version control system.
156
+
157
+
158
+
159
+ ActiveRecord::Schema.define(version: 2020_04_11_075604) do
160
+
161
+
162
+
163
+ create_table "users", options: "ENGINE=InnoDB DEFAULT CHARSET=utf8mb4", force: :cascade do |t|
164
+
165
+ t.string "provider", default: "email", null: false
166
+
167
+ t.string "uid", default: "", null: false
168
+
169
+ t.string "name"
170
+
171
+ t.string "image"
172
+
173
+ t.string "email"
174
+
175
+ t.string "encrypted_password", default: "", null: false
176
+
177
+ t.string "reset_password_token"
178
+
179
+ t.datetime "reset_password_sent_at"
180
+
181
+ t.boolean "allow_password_change", default: false
182
+
183
+ t.datetime "remember_created_at"
184
+
185
+ t.string "confirmation_token"
186
+
187
+ t.datetime "confirmed_at"
188
+
189
+ t.datetime "confirmation_sent_at"
190
+
191
+ t.string "unconfirmed_email"
192
+
193
+ t.integer "sign_in_count", default: 0, null: false
194
+
195
+ t.datetime "current_sign_in_at"
196
+
197
+ t.datetime "last_sign_in_at"
198
+
199
+ t.string "current_sign_in_ip"
200
+
201
+ t.string "last_sign_in_ip"
202
+
203
+ t.text "tokens"
204
+
205
+ t.datetime "created_at", precision: 6, null: false
206
+
207
+ t.datetime "updated_at", precision: 6, null: false
208
+
209
+ t.index ["confirmation_token"], name: "index_users_on_confirmation_token", unique: true
210
+
211
+ t.index ["email"], name: "index_users_on_email", unique: true
212
+
213
+ t.index ["reset_password_token"], name: "index_users_on_reset_password_token", unique: true
214
+
215
+ t.index ["uid", "provider"], name: "index_users_on_uid_and_provider", unique: true
216
+
217
+ end
218
+
219
+
220
+
221
+ end
222
+
223
+
224
+
225
+ ```
226
+
131
227
  ### 試したこと
132
228
 
133
229