|
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: 2020_12_09_053827) do |
| 13 | +ActiveRecord::Schema.define(version: 2020_12_18_010133) do |
14 | 14 |
|
15 | 15 | create_table "active_storage_attachments", options: "ENGINE=InnoDB DEFAULT CHARSET=utf8", force: :cascade do |t|
|
16 | 16 | t.string "name", null: false
|
|
35 | 35 |
|
36 | 36 | create_table "agreements", options: "ENGINE=InnoDB DEFAULT CHARSET=utf8", force: :cascade do |t|
|
37 | 37 | t.string "name"
|
38 |
| - t.string "agreement_url" |
| 38 | + t.text "agreement" |
39 | 39 | t.datetime "created_at", null: false
|
40 | 40 | t.datetime "updated_at", null: false
|
41 | 41 | end
|
|
73 | 73 | t.integer "query_id"
|
74 | 74 | t.text "statement"
|
75 | 75 | t.string "data_source"
|
76 |
| - t.datetime "created_at" |
| 76 | + t.timestamp "created_at" |
| 77 | + t.index ["query_id"], name: "index_blazer_audits_on_query_id" |
| 78 | + t.index ["user_id"], name: "index_blazer_audits_on_user_id" |
77 | 79 | end
|
78 | 80 |
|
79 | 81 | create_table "blazer_checks", id: :integer, options: "ENGINE=InnoDB DEFAULT CHARSET=utf8", force: :cascade do |t|
|
|
84 | 86 | t.text "emails"
|
85 | 87 | t.string "check_type"
|
86 | 88 | t.text "message"
|
87 |
| - t.datetime "last_run_at" |
| 89 | + t.timestamp "last_run_at" |
88 | 90 | t.datetime "created_at", null: false
|
89 | 91 | t.datetime "updated_at", null: false
|
| 92 | + t.index ["creator_id"], name: "index_blazer_checks_on_creator_id" |
| 93 | + t.index ["query_id"], name: "index_blazer_checks_on_query_id" |
90 | 94 | end
|
91 | 95 |
|
92 | 96 | create_table "blazer_dashboard_queries", id: :integer, options: "ENGINE=InnoDB DEFAULT CHARSET=utf8", force: :cascade do |t|
|
|
95 | 99 | t.integer "position"
|
96 | 100 | t.datetime "created_at", null: false
|
97 | 101 | t.datetime "updated_at", null: false
|
| 102 | + t.index ["dashboard_id"], name: "index_blazer_dashboard_queries_on_dashboard_id" |
| 103 | + t.index ["query_id"], name: "index_blazer_dashboard_queries_on_query_id" |
98 | 104 | end
|
99 | 105 |
|
100 | 106 | create_table "blazer_dashboards", id: :integer, options: "ENGINE=InnoDB DEFAULT CHARSET=utf8", force: :cascade do |t|
|
101 | 107 | t.integer "creator_id"
|
102 | 108 | t.text "name"
|
103 | 109 | t.datetime "created_at", null: false
|
104 | 110 | t.datetime "updated_at", null: false
|
| 111 | + t.index ["creator_id"], name: "index_blazer_dashboards_on_creator_id" |
105 | 112 | end
|
106 | 113 |
|
107 | 114 | create_table "blazer_queries", id: :integer, options: "ENGINE=InnoDB DEFAULT CHARSET=utf8", force: :cascade do |t|
|
|
112 | 119 | t.string "data_source"
|
113 | 120 | t.datetime "created_at", null: false
|
114 | 121 | t.datetime "updated_at", null: false
|
| 122 | + t.index ["creator_id"], name: "index_blazer_queries_on_creator_id" |
115 | 123 | end
|
116 | 124 |
|
117 | 125 | create_table "bus_lists", id: :integer, options: "ENGINE=InnoDB DEFAULT CHARSET=utf8", force: :cascade do |t|
|
|
151 | 159 | t.string "subject"
|
152 | 160 | t.string "recipients"
|
153 | 161 | t.text "body"
|
154 |
| - t.datetime "queued_at" |
155 |
| - t.datetime "started_at" |
156 |
| - t.datetime "delivered_at" |
| 162 | + t.timestamp "queued_at" |
| 163 | + t.timestamp "started_at" |
| 164 | + t.timestamp "delivered_at" |
157 | 165 | t.datetime "created_at"
|
158 | 166 | t.datetime "updated_at"
|
159 | 167 | t.string "template", default: "default"
|
|
0 commit comments