|
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_01_17_140644) do |
| 13 | +ActiveRecord::Schema.define(version: 2020_01_20_035617) do |
14 | 14 |
|
15 | 15 | # These are extensions that must be enabled in order to support this database |
16 | 16 | enable_extension "plpgsql" |
17 | 17 |
|
| 18 | + create_table "contamination_reports", force: :cascade do |t| |
| 19 | + t.bigint "accuser_id", null: false |
| 20 | + t.bigint "suspect_id", null: false |
| 21 | + t.datetime "created_at", precision: 6, null: false |
| 22 | + t.datetime "updated_at", precision: 6, null: false |
| 23 | + t.index ["accuser_id", "suspect_id"], name: "index_contamination_reports_on_accuser_id_and_suspect_id", unique: true |
| 24 | + t.index ["accuser_id"], name: "index_contamination_reports_on_accuser_id" |
| 25 | + t.index ["suspect_id"], name: "index_contamination_reports_on_suspect_id" |
| 26 | + end |
| 27 | + |
18 | 28 | create_table "inventory_items", force: :cascade do |t| |
19 | 29 | t.integer "quantity" |
20 | 30 | t.bigint "survivor_id", null: false |
|
45 | 55 | t.integer "age" |
46 | 56 | t.datetime "created_at", precision: 6, null: false |
47 | 57 | t.datetime "updated_at", precision: 6, null: false |
| 58 | + t.boolean "infected", default: false |
48 | 59 | end |
49 | 60 |
|
| 61 | + add_foreign_key "contamination_reports", "survivors", column: "accuser_id" |
| 62 | + add_foreign_key "contamination_reports", "survivors", column: "suspect_id" |
50 | 63 | add_foreign_key "inventory_items", "items" |
51 | 64 | add_foreign_key "inventory_items", "survivors" |
52 | 65 | add_foreign_key "locations", "survivors" |
|
0 commit comments