|
10 | 10 | # |
11 | 11 | # It's strongly recommended that you check this file into your version control system. |
12 | 12 |
|
13 | | -ActiveRecord::Schema.define(version: 2019_07_09_175149) do |
| 13 | +ActiveRecord::Schema.define(version: 2019_07_11_201636) do |
| 14 | + |
| 15 | + # These are extensions that must be enabled in order to support this database |
| 16 | + enable_extension "plpgsql" |
14 | 17 |
|
15 | 18 | create_table "active_storage_attachments", force: :cascade do |t| |
16 | 19 | t.string "name", null: false |
17 | 20 | t.string "record_type", null: false |
18 | | - t.integer "record_id", null: false |
19 | | - t.integer "blob_id", null: false |
| 21 | + t.bigint "record_id", null: false |
| 22 | + t.bigint "blob_id", null: false |
20 | 23 | t.datetime "created_at", null: false |
21 | 24 | t.index ["blob_id"], name: "index_active_storage_attachments_on_blob_id" |
22 | 25 | t.index ["record_type", "record_id", "name", "blob_id"], name: "index_active_storage_attachments_uniqueness", unique: true |
|
41 | 44 | t.datetime "updated_at", null: false |
42 | 45 | end |
43 | 46 |
|
| 47 | + create_table "users", force: :cascade do |t| |
| 48 | + t.string "name" |
| 49 | + t.string "token" |
| 50 | + t.string "email" |
| 51 | + t.string "password_digest" |
| 52 | + t.string "role" |
| 53 | + t.datetime "created_at", null: false |
| 54 | + t.datetime "updated_at", null: false |
| 55 | + t.index ["token"], name: "index_users_on_token" |
| 56 | + end |
| 57 | + |
| 58 | + add_foreign_key "active_storage_attachments", "active_storage_blobs", column: "blob_id" |
44 | 59 | end |
0 commit comments