|
11 | 11 | # It's strongly recommended that you check this file into your version control system. |
12 | 12 |
|
13 | 13 | ActiveRecord::Schema.define(version: 2018_06_07_053739) do |
14 | | - |
15 | 14 | create_table "active_admin_comments", force: :cascade do |t| |
16 | 15 | t.string "namespace" |
17 | 16 | t.text "body" |
18 | 17 | t.string "resource_type" |
19 | | - t.bigint "resource_id" |
| 18 | + t.integer "resource_id" |
20 | 19 | t.string "author_type" |
21 | | - t.bigint "author_id" |
22 | | - t.datetime "created_at", precision: 6, null: false |
23 | | - t.datetime "updated_at", precision: 6, null: false |
| 20 | + t.integer "author_id" |
| 21 | + t.datetime "created_at", null: false |
| 22 | + t.datetime "updated_at", null: false |
24 | 23 | t.index ["author_type", "author_id"], name: "index_active_admin_comments_on_author_type_and_author_id" |
25 | 24 | t.index ["namespace"], name: "index_active_admin_comments_on_namespace" |
26 | 25 | t.index ["resource_type", "resource_id"], name: "index_active_admin_comments_on_resource_type_and_resource_id" |
|
29 | 28 | create_table "active_storage_attachments", force: :cascade do |t| |
30 | 29 | t.string "name", null: false |
31 | 30 | t.string "record_type", null: false |
32 | | - t.integer "record_id", null: false |
33 | | - t.integer "blob_id", null: false |
| 31 | + t.bigint "record_id", null: false |
| 32 | + t.bigint "blob_id", null: false |
34 | 33 | t.datetime "created_at", null: false |
35 | 34 | t.index ["blob_id"], name: "index_active_storage_attachments_on_blob_id" |
36 | 35 | t.index ["record_type", "record_id", "name", "blob_id"], name: "index_active_storage_attachments_uniqueness", unique: true |
|
41 | 40 | t.string "filename", null: false |
42 | 41 | t.string "content_type" |
43 | 42 | t.text "metadata" |
| 43 | + t.string "service_name", null: false |
44 | 44 | t.bigint "byte_size", null: false |
45 | | - t.string "checksum", null: false |
| 45 | + t.string "checksum" |
46 | 46 | t.datetime "created_at", null: false |
47 | 47 | t.index ["key"], name: "index_active_storage_blobs_on_key", unique: true |
48 | 48 | end |
49 | 49 |
|
| 50 | + create_table "active_storage_variant_records", force: :cascade do |t| |
| 51 | + t.bigint "blob_id", null: false |
| 52 | + t.string "variation_digest", null: false |
| 53 | + t.index ["blob_id", "variation_digest"], name: "index_active_storage_variant_records_uniqueness", unique: true |
| 54 | + end |
| 55 | + |
50 | 56 | create_table "authors", force: :cascade do |t| |
51 | 57 | t.string "name" |
52 | 58 | t.integer "age" |
53 | 59 | t.string "email" |
54 | | - t.datetime "created_at", null: false |
55 | | - t.datetime "updated_at", null: false |
| 60 | + t.datetime "created_at", precision: nil, null: false |
| 61 | + t.datetime "updated_at", precision: nil, null: false |
56 | 62 | end |
57 | 63 |
|
58 | 64 | create_table "post_tags", force: :cascade do |t| |
59 | 65 | t.integer "post_id" |
60 | 66 | t.integer "tag_id" |
61 | | - t.datetime "created_at", null: false |
62 | | - t.datetime "updated_at", null: false |
| 67 | + t.datetime "created_at", precision: nil, null: false |
| 68 | + t.datetime "updated_at", precision: nil, null: false |
63 | 69 | t.index ["post_id"], name: "index_post_tags_on_post_id" |
64 | 70 | t.index ["tag_id"], name: "index_post_tags_on_tag_id" |
65 | 71 | end |
|
70 | 76 | t.text "description" |
71 | 77 | t.integer "author_id" |
72 | 78 | t.string "category" |
73 | | - t.datetime "dt" |
| 79 | + t.datetime "dt", precision: nil |
74 | 80 | t.float "position" |
75 | 81 | t.boolean "published" |
76 | | - t.datetime "created_at", null: false |
77 | | - t.datetime "updated_at", null: false |
| 82 | + t.datetime "created_at", precision: nil, null: false |
| 83 | + t.datetime "updated_at", precision: nil, null: false |
78 | 84 | t.index ["author_id"], name: "index_posts_on_author_id" |
79 | 85 | end |
80 | 86 |
|
81 | 87 | create_table "profiles", force: :cascade do |t| |
82 | 88 | t.text "description" |
83 | 89 | t.integer "author_id" |
84 | | - t.datetime "created_at", null: false |
85 | | - t.datetime "updated_at", null: false |
| 90 | + t.datetime "created_at", precision: nil, null: false |
| 91 | + t.datetime "updated_at", precision: nil, null: false |
86 | 92 | t.index ["author_id"], name: "index_profiles_on_author_id" |
87 | 93 | end |
88 | 94 |
|
89 | 95 | create_table "tags", force: :cascade do |t| |
90 | 96 | t.string "name" |
91 | | - t.datetime "created_at", null: false |
92 | | - t.datetime "updated_at", null: false |
| 97 | + t.datetime "created_at", precision: nil, null: false |
| 98 | + t.datetime "updated_at", precision: nil, null: false |
93 | 99 | end |
94 | 100 |
|
95 | 101 | add_foreign_key "active_storage_attachments", "active_storage_blobs", column: "blob_id" |
| 102 | + add_foreign_key "active_storage_variant_records", "active_storage_blobs", column: "blob_id" |
96 | 103 | add_foreign_key "post_tags", "posts" |
97 | 104 | add_foreign_key "post_tags", "tags" |
98 | 105 | add_foreign_key "posts", "authors" |
|
0 commit comments