|
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: 2018_06_07_053739) do |
14 |
| - |
| 13 | +ActiveRecord::Schema[7.0].define(version: 2018_06_07_053739) do |
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"
|
|
31 | 30 | t.string "record_type", null: false
|
32 | 31 | t.integer "record_id", null: false
|
33 | 32 | t.integer "blob_id", null: false
|
34 |
| - t.datetime "created_at", null: false |
| 33 | + t.datetime "created_at", precision: nil, 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
|
37 | 36 | end
|
|
43 | 42 | t.text "metadata"
|
44 | 43 | t.bigint "byte_size", null: false
|
45 | 44 | t.string "checksum", null: false
|
46 |
| - t.datetime "created_at", null: false |
| 45 | + t.datetime "created_at", precision: nil, null: false |
47 | 46 | t.index ["key"], name: "index_active_storage_blobs_on_key", unique: true
|
48 | 47 | end
|
49 | 48 |
|
50 | 49 | create_table "authors", force: :cascade do |t|
|
51 | 50 | t.string "name"
|
52 | 51 | t.integer "age"
|
53 | 52 | t.string "email"
|
54 |
| - t.datetime "created_at", null: false |
55 |
| - t.datetime "updated_at", null: false |
| 53 | + t.datetime "created_at", precision: nil, null: false |
| 54 | + t.datetime "updated_at", precision: nil, null: false |
56 | 55 | end
|
57 | 56 |
|
58 | 57 | create_table "post_tags", force: :cascade do |t|
|
59 | 58 | t.integer "post_id"
|
60 | 59 | t.integer "tag_id"
|
61 |
| - t.datetime "created_at", null: false |
62 |
| - t.datetime "updated_at", null: false |
| 60 | + t.datetime "created_at", precision: nil, null: false |
| 61 | + t.datetime "updated_at", precision: nil, null: false |
63 | 62 | t.index ["post_id"], name: "index_post_tags_on_post_id"
|
64 | 63 | t.index ["tag_id"], name: "index_post_tags_on_tag_id"
|
65 | 64 | end
|
66 | 65 |
|
67 | 66 | create_table "posts", force: :cascade do |t|
|
68 | 67 | t.string "title"
|
| 68 | + t.string "state" |
69 | 69 | t.text "description"
|
70 | 70 | t.integer "author_id"
|
71 | 71 | t.string "category"
|
72 |
| - t.datetime "dt" |
| 72 | + t.datetime "dt", precision: nil |
73 | 73 | t.float "position"
|
74 | 74 | t.boolean "published"
|
75 |
| - t.datetime "created_at", null: false |
76 |
| - t.datetime "updated_at", null: false |
| 75 | + t.datetime "created_at", precision: nil, null: false |
| 76 | + t.datetime "updated_at", precision: nil, null: false |
77 | 77 | t.index ["author_id"], name: "index_posts_on_author_id"
|
78 | 78 | end
|
79 | 79 |
|
80 | 80 | create_table "profiles", force: :cascade do |t|
|
81 | 81 | t.text "description"
|
82 | 82 | t.integer "author_id"
|
83 |
| - t.datetime "created_at", null: false |
84 |
| - t.datetime "updated_at", null: false |
| 83 | + t.datetime "created_at", precision: nil, null: false |
| 84 | + t.datetime "updated_at", precision: nil, null: false |
85 | 85 | t.index ["author_id"], name: "index_profiles_on_author_id"
|
86 | 86 | end
|
87 | 87 |
|
88 | 88 | create_table "tags", force: :cascade do |t|
|
89 | 89 | t.string "name"
|
90 |
| - t.datetime "created_at", null: false |
91 |
| - t.datetime "updated_at", null: false |
| 90 | + t.datetime "created_at", precision: nil, null: false |
| 91 | + t.datetime "updated_at", precision: nil, null: false |
92 | 92 | end
|
93 | 93 |
|
94 | 94 | add_foreign_key "active_storage_attachments", "active_storage_blobs", column: "blob_id"
|
|
0 commit comments