Skip to content

Commit

Permalink
Merge pull request #4512 from DFE-Digital/drop-course-type-column-fro…
Browse files Browse the repository at this point in the history
…m-course-table

Remove `course_type` column from Course
  • Loading branch information
avinhurry authored Sep 11, 2024
2 parents ad4dd63 + f0b6053 commit 080713e
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 3 deletions.
1 change: 0 additions & 1 deletion config/analytics.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,6 @@ shared:
- accept_pending_a_level
- accept_a_level_equivalency
- additional_a_level_equivalencies
- course_type
- degree_type
- funding
course_site:
Expand Down
7 changes: 7 additions & 0 deletions db/migrate/20240910160051_remove_course_type_from_course.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
# frozen_string_literal: true

class RemoveCourseTypeFromCourse < ActiveRecord::Migration[7.2]
def change
remove_column :course, :course_type, :string
end
end
3 changes: 1 addition & 2 deletions db/schema.rb
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.2].define(version: 2024_09_10_141649) do
ActiveRecord::Schema[7.2].define(version: 2024_09_10_160051) do
# These are extensions that must be enabled in order to support this database
enable_extension "btree_gin"
enable_extension "btree_gist"
Expand Down Expand Up @@ -156,7 +156,6 @@
t.boolean "accept_pending_a_level"
t.boolean "accept_a_level_equivalency"
t.text "additional_a_level_equivalencies"
t.string "course_type", default: "postgraduate", null: false
t.string "funding", default: "not_set", null: false
t.string "degree_type", default: "postgraduate", null: false
t.index ["accredited_provider_code"], name: "index_course_on_accredited_provider_code"
Expand Down
Binary file modified docs/database-diagram.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 080713e

Please sign in to comment.