Skip to content

Commit

Permalink
Merge pull request #5500 from DFE-Digital/4011-drop-npq-course-id-column
Browse files Browse the repository at this point in the history
Drop `npq_course_id` from `ParticipantProfile`
ethax-ross authored Jan 31, 2025
2 parents 44a8744 + 2d686c7 commit 89f531f
Showing 2 changed files with 9 additions and 3 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
# frozen_string_literal: true

class RemoveNPQCourseIdFromParticipantProfiles < ActiveRecord::Migration[7.0]
def change
safety_assured { remove_column :participant_profiles, :npq_course_id, :integer }
end
end

4 changes: 1 addition & 3 deletions db/schema.rb
Original file line number Diff line number Diff line change
@@ -10,7 +10,7 @@
#
# It's strongly recommended that you check this file into your version control system.

ActiveRecord::Schema[7.1].define(version: 2025_01_27_140541) do
ActiveRecord::Schema[7.1].define(version: 2025_01_30_101804) do
# These are extensions that must be enabled in order to support this database
enable_extension "citext"
enable_extension "fuzzystrmatch"
@@ -834,7 +834,6 @@
t.uuid "school_cohort_id"
t.uuid "teacher_profile_id"
t.uuid "schedule_id", null: false
t.uuid "npq_course_id"
t.text "school_urn"
t.text "school_ukprn"
t.datetime "request_for_details_sent_at", precision: nil
@@ -850,7 +849,6 @@
t.index ["cohort_id"], name: "index_participant_profiles_on_cohort_id"
t.index ["core_induction_programme_id"], name: "index_participant_profiles_on_core_induction_programme_id"
t.index ["mentor_profile_id"], name: "index_participant_profiles_on_mentor_profile_id"
t.index ["npq_course_id"], name: "index_participant_profiles_on_npq_course_id"
t.index ["participant_identity_id"], name: "index_participant_profiles_on_participant_identity_id"
t.index ["schedule_id"], name: "index_participant_profiles_on_schedule_id"
t.index ["school_cohort_id"], name: "index_participant_profiles_on_school_cohort_id"

0 comments on commit 89f531f

Please sign in to comment.