|
12 | 12 |
|
13 | 13 | ActiveRecord::Schema.define(version: 0) do |
14 | 14 |
|
15 | | - create_table "alerts", force: true do |t| |
16 | | - t.integer "job_id", null: false |
17 | | - t.integer "execution_id" |
18 | | - t.integer "schedule_id" |
| 15 | + create_table "alerts", force: :cascade do |t| |
| 16 | + t.integer "job_id", limit: 4, null: false |
| 17 | + t.integer "execution_id", limit: 4 |
| 18 | + t.integer "schedule_id", limit: 4 |
19 | 19 | t.string "kind", limit: 4, default: "", null: false |
20 | 20 | t.datetime "expected_at" |
21 | 21 | t.string "medium", limit: 9, default: "", null: false |
|
29 | 29 | add_index "alerts", ["medium"], name: "medium", using: :btree |
30 | 30 | add_index "alerts", ["schedule_id"], name: "schedule_id", using: :btree |
31 | 31 |
|
32 | | - create_table "executions", force: true do |t| |
33 | | - t.integer "job_id", null: false |
34 | | - t.integer "number", null: false |
35 | | - t.datetime "created_at", null: false |
| 32 | + create_table "executions", force: :cascade do |t| |
| 33 | + t.integer "job_id", limit: 4, null: false |
| 34 | + t.integer "number", limit: 4, null: false |
| 35 | + t.datetime "created_at", null: false |
36 | 36 | t.datetime "started_at" |
37 | 37 | t.datetime "finished_at" |
38 | | - t.integer "exit_status" |
| 38 | + t.integer "exit_status", limit: 4 |
39 | 39 | end |
40 | 40 |
|
41 | 41 | add_index "executions", ["created_at"], name: "executions_created_at", using: :btree |
|
44 | 44 | add_index "executions", ["job_id"], name: "executions_job_id", using: :btree |
45 | 45 | add_index "executions", ["started_at"], name: "started_at", using: :btree |
46 | 46 |
|
47 | | - create_table "hosts", force: true do |t| |
48 | | - t.string "name" |
49 | | - t.string "fqdn", default: "", null: false |
50 | | - t.string "user", limit: 32, default: "", null: false |
51 | | - t.string "host", default: "", null: false |
52 | | - t.integer "port", null: false |
53 | | - t.text "public_key" |
54 | | - t.datetime "created_at", null: false |
55 | | - t.datetime "updated_at", null: false |
| 47 | + create_table "hosts", force: :cascade do |t| |
| 48 | + t.string "name", limit: 255 |
| 49 | + t.string "fqdn", limit: 255, default: "", null: false |
| 50 | + t.string "user", limit: 32, default: "", null: false |
| 51 | + t.string "host", limit: 255, default: "", null: false |
| 52 | + t.integer "port", limit: 4, null: false |
| 53 | + t.text "public_key", limit: 65535 |
| 54 | + t.datetime "created_at", null: false |
| 55 | + t.datetime "updated_at", null: false |
56 | 56 | end |
57 | 57 |
|
58 | 58 | add_index "hosts", ["fqdn"], name: "hostname", using: :btree |
59 | 59 |
|
60 | | - create_table "job_execution_outputs", force: true do |t| |
61 | | - t.integer "execution_id", null: false |
62 | | - t.integer "seq", null: false |
63 | | - t.text "output", null: false |
64 | | - t.datetime "timestamp", null: false |
| 60 | + create_table "job_execution_outputs", force: :cascade do |t| |
| 61 | + t.integer "execution_id", limit: 4, null: false |
| 62 | + t.integer "seq", limit: 4, null: false |
| 63 | + t.text "output", limit: 65535, null: false |
| 64 | + t.datetime "timestamp", null: false |
65 | 65 | end |
66 | 66 |
|
67 | 67 | add_index "job_execution_outputs", ["execution_id"], name: "job_execution_outputs_execution_id", using: :btree |
68 | 68 | add_index "job_execution_outputs", ["seq"], name: "seq", using: :btree |
69 | 69 |
|
70 | | - create_table "jobs", force: true do |t| |
71 | | - t.integer "host_id", null: false |
72 | | - t.string "job_hash", limit: 32, default: "", null: false |
73 | | - t.string "name" |
74 | | - t.string "user", limit: 32, null: false |
75 | | - t.text "command", null: false |
76 | | - t.datetime "created_at", null: false |
77 | | - t.datetime "updated_at", null: false |
| 70 | + create_table "jobs", force: :cascade do |t| |
| 71 | + t.integer "host_id", limit: 4, null: false |
| 72 | + t.string "job_hash", limit: 32, default: "", null: false |
| 73 | + t.string "name", limit: 255 |
| 74 | + t.string "user", limit: 32, null: false |
| 75 | + t.text "command", limit: 65535, null: false |
| 76 | + t.datetime "created_at", null: false |
| 77 | + t.datetime "updated_at", null: false |
78 | 78 | end |
79 | 79 |
|
80 | 80 | add_index "jobs", ["created_at"], name: "jobs_created_at", using: :btree |
81 | 81 | add_index "jobs", ["host_id"], name: "host_id", using: :btree |
82 | 82 | add_index "jobs", ["job_hash"], name: "job_hash", unique: true, using: :btree |
83 | 83 |
|
84 | | - create_table "schedules", force: true do |t| |
85 | | - t.integer "job_id", null: false |
| 84 | + create_table "schedules", force: :cascade do |t| |
| 85 | + t.integer "job_id", limit: 4, null: false |
86 | 86 | t.string "minute", limit: 169 |
87 | 87 | t.string "hour", limit: 61 |
88 | 88 | t.string "day_of_the_month", limit: 83 |
|
0 commit comments