Skip to content

Commit

Permalink
EDM-512/Migrations for ojt_app_type column (#1292)
Browse files Browse the repository at this point in the history
* Create migrations

* Run migrations

* run migration

---------

Co-authored-by: nfstern02 <[email protected]>
  • Loading branch information
jefftmarks and nfstern02 authored Jan 16, 2025
1 parent 1271d65 commit 1671352
Show file tree
Hide file tree
Showing 4 changed files with 89 additions and 2 deletions.
5 changes: 5 additions & 0 deletions db/migrate/20250115202839_add_ojt_app_type_to_programs.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
class AddOjtAppTypeToPrograms < ActiveRecord::Migration[7.1]
def change
add_column :programs, :ojt_app_type, :string
end
end
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
class AddOjtAppTypeToInstitutionPrograms < ActiveRecord::Migration[7.1]
def change
add_column :institution_programs, :ojt_app_type, :string
end
end
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
class AddOjtAppTypeToInstitutionProgramsArchives < ActiveRecord::Migration[7.1]
def change
add_column :institution_programs_archives, :ojt_app_type, :string
end
end
76 changes: 74 additions & 2 deletions db/schema.rb
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
#
# It's strongly recommended that you check this file into your version control system.

ActiveRecord::Schema[7.1].define(version: 2024_09_05_145239) do
ActiveRecord::Schema[7.1].define(version: 2025_01_15_202913) do
# These are extensions that must be enabled in order to support this database
enable_extension "cube"
enable_extension "earthdistance"
Expand Down Expand Up @@ -297,6 +297,7 @@
t.integer "tuition_amount"
t.integer "length_in_weeks"
t.integer "institution_id"
t.string "ojt_app_type"
t.index ["description", "version"], name: "index_institution_programs"
t.index ["institution_id"], name: "index_institution_programs_on_institution_id"
end
Expand All @@ -323,6 +324,7 @@
t.integer "tuition_amount"
t.integer "length_in_weeks"
t.integer "institution_id"
t.string "ojt_app_type"
t.index ["description", "version"], name: "index_institution_programs_archives"
t.index ["institution_id"], name: "index_institution_programs_archives_on_institution_id"
end
Expand Down Expand Up @@ -1385,6 +1387,72 @@
t.index ["cross"], name: "index_ipeds_ics_on_cross"
end

create_table "lce_exams", force: :cascade do |t|
t.string "name"
t.text "description"
t.date "dates"
t.decimal "amount"
t.bigint "institution_id"
t.datetime "created_at", null: false
t.datetime "updated_at", null: false
t.index ["institution_id"], name: "index_lce_exams_on_institution_id"
end

create_table "lce_institutions", force: :cascade do |t|
t.integer "ptcpnt_id"
t.string "name"
t.string "abbreviated_name"
t.string "physical_street"
t.string "physical_city"
t.string "physical_state"
t.string "physical_zip"
t.string "physical_country"
t.string "mailing_street"
t.string "mailing_city"
t.string "mailing_state"
t.string "mailing_zip"
t.string "mailing_country"
t.string "phone"
t.string "web_address"
t.datetime "created_at", null: false
t.datetime "updated_at", null: false
end

create_table "lce_license_and_certs", force: :cascade do |t|
t.string "name"
t.decimal "fee"
t.bigint "institution_id"
t.datetime "created_at", null: false
t.datetime "updated_at", null: false
t.index ["institution_id"], name: "index_lce_license_and_certs_on_institution_id"
end

create_table "lce_officials", force: :cascade do |t|
t.string "name"
t.string "title"
t.bigint "institution_id"
t.datetime "created_at", null: false
t.datetime "updated_at", null: false
t.index ["institution_id"], name: "index_lce_officials_on_institution_id"
end

create_table "license_certification_institutions", force: :cascade do |t|
t.string "name"
t.string "abbreviated_name"
t.string "physical_street"
t.string "physical_city"
t.string "physical_zip"
t.string "physical_country"
t.string "mailing_street"
t.string "mailing_city"
t.string "mailing_zip"
t.string "mailing_country"
t.string "phone"
t.string "web_address"
t.datetime "created_at", null: false
t.datetime "updated_at", null: false
end

create_table "mous", id: :serial, force: :cascade do |t|
t.string "ope", null: false
t.string "ope6", null: false
Expand Down Expand Up @@ -1443,6 +1511,7 @@
t.string "full_time_modifier", limit: 1
t.string "length", limit: 7
t.integer "csv_row"
t.string "ojt_app_type"
t.index ["facility_code", "description"], name: "index_programs_on_facility_code_and_description"
end

Expand Down Expand Up @@ -1966,14 +2035,17 @@
t.index ["version", "zip_code"], name: "zipcode_rates_archives_version_zip_code_idx"
end

add_foreign_key "accreditation_records", "accreditation_type_keywords", on_delete: :nullify
add_foreign_key "accreditation_records", "accreditation_type_keywords", on_delete: :nullify, validate: false
add_foreign_key "caution_flags", "institutions"
add_foreign_key "caution_flags", "versions"
add_foreign_key "crosswalk_issues", "crosswalks"
add_foreign_key "crosswalk_issues", "ipeds_hds", on_delete: :cascade
add_foreign_key "crosswalk_issues", "weams"
add_foreign_key "institution_ratings", "institutions"
add_foreign_key "institutions", "versions"
add_foreign_key "lce_exams", "institutions"
add_foreign_key "lce_license_and_certs", "institutions"
add_foreign_key "lce_officials", "institutions"
add_foreign_key "versioned_school_certifying_officials", "institutions"
add_foreign_key "zipcode_rates", "versions"
end

0 comments on commit 1671352

Please sign in to comment.