Skip to content

Commit

Permalink
atomated changes from: rake db:drop && rake db:create && rake db:migr…
Browse files Browse the repository at this point in the history
…ate && rake db:seed
  • Loading branch information
compwron committed Oct 29, 2020
1 parent 3e5876c commit b5fcdbe
Showing 1 changed file with 10 additions and 12 deletions.
22 changes: 10 additions & 12 deletions db/schema.rb
Original file line number Diff line number Diff line change
Expand Up @@ -67,8 +67,8 @@
t.boolean "court_report_submitted", default: false, null: false
t.datetime "court_date"
t.datetime "court_report_due_date"
t.boolean "active", default: true, null: false
t.bigint "hearing_type_id"
t.boolean "active", default: true, null: false
t.bigint "judge_id"
t.index ["casa_org_id"], name: "index_casa_cases_on_casa_org_id"
t.index ["case_number"], name: "index_casa_cases_on_case_number", unique: true
Expand Down Expand Up @@ -156,14 +156,6 @@
t.index ["casa_org_id"], name: "index_hearing_types_on_casa_org_id"
end

create_table "past_court_dates", force: :cascade do |t|
t.datetime "date", null: false
t.bigint "casa_case_id", null: false
t.datetime "created_at", precision: 6, null: false
t.datetime "updated_at", precision: 6, null: false
t.index ["casa_case_id"], name: "index_past_court_dates_on_casa_case_id"
end

create_table "judges", force: :cascade do |t|
t.bigint "casa_org_id", null: false
t.datetime "created_at", precision: 6, null: false
Expand All @@ -173,6 +165,14 @@
t.index ["casa_org_id"], name: "index_judges_on_casa_org_id"
end

create_table "past_court_dates", force: :cascade do |t|
t.datetime "date", null: false
t.bigint "casa_case_id", null: false
t.datetime "created_at", precision: 6, null: false
t.datetime "updated_at", precision: 6, null: false
t.index ["casa_case_id"], name: "index_past_court_dates_on_casa_case_id"
end

create_table "supervisor_volunteers", force: :cascade do |t|
t.bigint "supervisor_id", null: false
t.bigint "volunteer_id", null: false
Expand Down Expand Up @@ -233,10 +233,8 @@
add_foreign_key "case_assignments", "users", column: "volunteer_id"
add_foreign_key "case_contacts", "casa_cases"
add_foreign_key "case_contacts", "users", column: "creator_id"


add_foreign_key "past_court_dates", "casa_cases"
add_foreign_key "judges", "casa_orgs"
add_foreign_key "past_court_dates", "casa_cases"
add_foreign_key "supervisor_volunteers", "users", column: "supervisor_id"
add_foreign_key "supervisor_volunteers", "users", column: "volunteer_id"
add_foreign_key "users", "casa_orgs"
Expand Down

0 comments on commit b5fcdbe

Please sign in to comment.