|
10 | 10 | # |
11 | 11 | # It's strongly recommended that you check this file into your version control system. |
12 | 12 |
|
13 | | -ActiveRecord::Schema[7.2].define(version: 2025_04_07_124024) do |
| 13 | +ActiveRecord::Schema[7.2].define(version: 2025_04_07_150504) do |
14 | 14 | # These are extensions that must be enabled in order to support this database |
15 | 15 | enable_extension "pg_trgm" |
16 | 16 | enable_extension "plpgsql" |
|
75 | 75 | t.boolean "active" |
76 | 76 | t.datetime "created_at", precision: nil, null: false |
77 | 77 | t.datetime "updated_at", precision: nil, null: false |
| 78 | + t.string "country_code" |
78 | 79 | t.index ["active"], name: "index_c14_labs_on_active" |
79 | 80 | t.index ["name"], name: "index_c14_labs_on_name" |
80 | 81 | end |
|
212 | 213 | end |
213 | 214 |
|
214 | 215 | create_table "periods_site_phases", id: false, force: :cascade do |t| |
215 | | - t.bigint "site_phase_id" |
216 | | - t.bigint "period_id" |
| 216 | + t.bigint "site_phase_id", null: false |
| 217 | + t.bigint "period_id", null: false |
| 218 | + t.index ["site_phase_id", "period_id"], name: "index_spp" |
217 | 219 | end |
218 | 220 |
|
219 | 221 | create_table "pg_search_documents", force: :cascade do |t| |
|
225 | 227 | t.index ["searchable_type", "searchable_id"], name: "index_pg_search_documents_on_searchable" |
226 | 228 | end |
227 | 229 |
|
228 | | - create_table "physical_locations", id: false, force: :cascade do |t| |
| 230 | + create_table "physical_locations", force: :cascade do |t| |
229 | 231 | t.bigint "site_id" |
230 | 232 | t.bigint "country_id" |
231 | | - t.text "created_at" |
232 | | - t.text "updated_at" |
| 233 | + t.datetime "created_at", precision: nil, null: false |
| 234 | + t.datetime "updated_at", precision: nil, null: false |
| 235 | + t.index ["country_id"], name: "index_physical_locations_on_country_id" |
| 236 | + t.index ["site_id"], name: "index_physical_locations_on_site_id" |
233 | 237 | end |
234 | 238 |
|
235 | 239 | create_table "references", force: :cascade do |t| |
|
348 | 352 | end |
349 | 353 |
|
350 | 354 | create_table "versions", force: :cascade do |t| |
351 | | - t.string "item_type", null: false |
| 355 | + t.string "item_type" |
| 356 | + t.string "{:null=>false}" |
352 | 357 | t.bigint "item_id", null: false |
353 | 358 | t.string "event", null: false |
354 | 359 | t.string "whodunnit" |
|
0 commit comments