|
10 | 10 | # |
11 | 11 | # It's strongly recommended that you check this file into your version control system. |
12 | 12 |
|
13 | | -ActiveRecord::Schema[8.0].define(version: 2022_04_10_111444) do |
| 13 | +ActiveRecord::Schema[8.1].define(version: 2026_04_15_132023) do |
14 | 14 | create_table "active_storage_attachments", force: :cascade do |t| |
15 | | - t.string "name", null: false |
16 | | - t.string "record_type", null: false |
17 | | - t.integer "record_id", null: false |
18 | 15 | t.integer "blob_id", null: false |
19 | 16 | t.datetime "created_at", precision: nil, null: false |
| 17 | + t.string "name", null: false |
| 18 | + t.integer "record_id", null: false |
| 19 | + t.string "record_type", null: false |
20 | 20 | t.index ["blob_id"], name: "index_active_storage_attachments_on_blob_id" |
21 | 21 | t.index ["record_type", "record_id", "name", "blob_id"], name: "index_active_storage_attachments_uniqueness", unique: true |
22 | 22 | end |
23 | 23 |
|
24 | 24 | create_table "active_storage_blobs", force: :cascade do |t| |
25 | | - t.string "key", null: false |
26 | | - t.string "filename", null: false |
27 | | - t.string "content_type" |
28 | | - t.text "metadata" |
29 | | - t.string "service_name", null: false |
30 | 25 | t.bigint "byte_size", null: false |
31 | 26 | t.string "checksum" |
| 27 | + t.string "content_type" |
32 | 28 | t.datetime "created_at", precision: nil, null: false |
| 29 | + t.string "filename", null: false |
| 30 | + t.string "key", null: false |
| 31 | + t.text "metadata" |
| 32 | + t.string "service_name", null: false |
33 | 33 | t.index ["key"], name: "index_active_storage_blobs_on_key", unique: true |
34 | 34 | end |
35 | 35 |
|
|
40 | 40 | end |
41 | 41 |
|
42 | 42 | create_table "attachments", force: :cascade do |t| |
| 43 | + t.datetime "created_at", precision: nil |
43 | 44 | t.integer "script_id" |
44 | | - t.string "upload_file_name" |
| 45 | + t.datetime "updated_at", precision: nil |
45 | 46 | t.string "upload_content_type" |
| 47 | + t.string "upload_file_name" |
46 | 48 | t.bigint "upload_file_size" |
47 | 49 | t.datetime "upload_updated_at", precision: nil |
48 | | - t.datetime "created_at", precision: nil |
49 | | - t.datetime "updated_at", precision: nil |
| 50 | + t.index ["script_id"], name: "index_attachments_on_script_id" |
50 | 51 | end |
51 | 52 |
|
52 | 53 | create_table "logs", force: :cascade do |t| |
| 54 | + t.datetime "created_at", precision: nil |
53 | 55 | t.string "host" |
| 56 | + t.text "memo" |
54 | 57 | t.text "result" |
| 58 | + t.integer "result_bytes" |
55 | 59 | t.integer "script_id" |
56 | | - t.datetime "created_at", precision: nil |
57 | 60 | t.datetime "updated_at", precision: nil |
58 | | - t.text "memo" |
59 | | - t.integer "result_bytes" |
60 | 61 | end |
61 | 62 |
|
62 | 63 | create_table "scripts", force: :cascade do |t| |
63 | | - t.string "name" |
| 64 | + t.boolean "archived" |
64 | 65 | t.text "body" |
| 66 | + t.datetime "created_at", precision: nil |
65 | 67 | t.integer "created_by_id" |
66 | | - t.integer "updated_by_id" |
67 | 68 | t.string "guid" |
68 | | - t.boolean "archived" |
69 | | - t.datetime "created_at", precision: nil |
| 69 | + t.string "name" |
70 | 70 | t.datetime "updated_at", precision: nil |
| 71 | + t.integer "updated_by_id" |
| 72 | + t.index ["guid"], name: "index_scripts_on_guid", unique: true |
71 | 73 | end |
72 | 74 |
|
73 | 75 | create_table "users", force: :cascade do |t| |
| 76 | + t.datetime "created_at", precision: nil |
74 | 77 | t.string "name", null: false |
75 | 78 | t.string "nickname", null: false |
76 | | - t.datetime "created_at", precision: nil |
77 | 79 | t.datetime "updated_at", precision: nil |
78 | 80 | end |
79 | 81 |
|
|
0 commit comments