Skip to content

Commit

Permalink
Merge pull request #4349 from DFE-Digital/remove-a-level-requirements…
Browse files Browse the repository at this point in the history
…-from-the-db

Remove a level requirements from the db
  • Loading branch information
tomas-stefano authored Jul 9, 2024
2 parents 8850729 + 3117acb commit ccdde36
Show file tree
Hide file tree
Showing 4 changed files with 10 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 @@ -42,7 +42,6 @@ shared:
- can_sponsor_skilled_worker_visa
- can_sponsor_student_visa
- application_status
- a_level_requirements
- a_level_subject_requirements
- accept_pending_a_level
- accept_a_level_equivalency
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
# frozen_string_literal: true

class RemoveALevelRequirementsFromCourse < ActiveRecord::Migration[7.1]
def change
change_table :course, bulk: true do |t|
t.remove :a_level_requirements, type: :boolean
end
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.1].define(version: 2024_06_26_152102) do
ActiveRecord::Schema[7.1].define(version: 2024_07_08_162024) 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 @@ -152,7 +152,6 @@
t.integer "master_subject_id"
t.integer "campaign_name"
t.integer "application_status", default: 0, null: false
t.boolean "a_level_requirements"
t.jsonb "a_level_subject_requirements", default: []
t.boolean "accept_pending_a_level"
t.boolean "accept_a_level_equivalency"
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 ccdde36

Please sign in to comment.