質問編集履歴
1
schema.rbの追加
test
CHANGED
File without changes
|
test
CHANGED
@@ -176,6 +176,86 @@
|
|
176
176
|
|
177
177
|
```
|
178
178
|
|
179
|
+
schema.rb
|
180
|
+
|
181
|
+
--
|
182
|
+
|
183
|
+
```
|
184
|
+
|
185
|
+
# This file is auto-generated from the current state of the database. Instead
|
186
|
+
|
187
|
+
# of editing this file, please use the migrations feature of Active Record to
|
188
|
+
|
189
|
+
# incrementally modify your database, and then regenerate this schema definition.
|
190
|
+
|
191
|
+
#
|
192
|
+
|
193
|
+
# Note that this schema.rb definition is the authoritative source for your
|
194
|
+
|
195
|
+
# database schema. If you need to create the application database on another
|
196
|
+
|
197
|
+
# system, you should be using db:schema:load, not running all the migrations
|
198
|
+
|
199
|
+
# from scratch. The latter is a flawed and unsustainable approach (the more migrations
|
200
|
+
|
201
|
+
# you'll amass, the slower it'll run and the greater likelihood for issues).
|
202
|
+
|
203
|
+
#
|
204
|
+
|
205
|
+
# It's strongly recommended that you check this file into your version control system.
|
206
|
+
|
207
|
+
|
208
|
+
|
209
|
+
ActiveRecord::Schema.define(version: 2019_11_28_035704) do
|
210
|
+
|
211
|
+
|
212
|
+
|
213
|
+
# These are extensions that must be enabled in order to support this database
|
214
|
+
|
215
|
+
enable_extension "plpgsql"
|
216
|
+
|
217
|
+
|
218
|
+
|
219
|
+
create_table "tasks", force: :cascade do |t|
|
220
|
+
|
221
|
+
t.string "name", limit: 30
|
222
|
+
|
223
|
+
t.text "description"
|
224
|
+
|
225
|
+
t.datetime "created_at", null: false
|
226
|
+
|
227
|
+
t.datetime "updated_at", null: false
|
228
|
+
|
229
|
+
t.bigint "user_id", null: false
|
230
|
+
|
231
|
+
t.index ["user_id"], name: "index_tasks_on_user_id"
|
232
|
+
|
233
|
+
end
|
234
|
+
|
235
|
+
|
236
|
+
|
237
|
+
create_table "users", force: :cascade do |t|
|
238
|
+
|
239
|
+
t.string "name", null: false
|
240
|
+
|
241
|
+
t.string "email", null: false
|
242
|
+
|
243
|
+
t.string "password_digest", null: false
|
244
|
+
|
245
|
+
t.datetime "created_at", null: false
|
246
|
+
|
247
|
+
t.datetime "updated_at", null: false
|
248
|
+
|
249
|
+
t.index ["email"], name: "index_users_on_email", unique: true
|
250
|
+
|
251
|
+
end
|
252
|
+
|
253
|
+
|
254
|
+
|
255
|
+
end
|
256
|
+
|
257
|
+
```
|
258
|
+
|
179
259
|
|
180
260
|
|
181
261
|
|