File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 2222# nhs_immunisations_api_primary_source :boolean
2323# nhs_immunisations_api_snomed_procedure_code :string
2424# nhs_immunisations_api_snomed_procedure_term :string
25+ # nhs_immunisations_api_snomed_reason_code :string
26+ # nhs_immunisations_api_snomed_reason_term :string
2527# nhs_immunisations_api_sync_pending_at :datetime
2628# nhs_immunisations_api_synced_at :datetime
2729# notes :text
Original file line number Diff line number Diff line change 1+ # frozen_string_literal: true
2+
3+ class AddReasonCodeToVaccinationRecords < ActiveRecord ::Migration [ 8.1 ]
4+ def change
5+ change_table :vaccination_records , bulk : true do |t |
6+ t . string :nhs_immunisations_api_snomed_reason_code
7+ t . string :nhs_immunisations_api_snomed_reason_term
8+ end
9+ end
10+ end
Original file line number Diff line number Diff line change 1010#
1111# It's strongly recommended that you check this file into your version control system.
1212
13-
14- ActiveRecord ::Schema [ 8.1 ] . define ( version : 2026_03_30_130232 ) do
13+ ActiveRecord ::Schema [ 8.1 ] . define ( version : 2026_03_31_100000 ) do
1514 # These are extensions that must be enabled in order to support this database
1615 enable_extension "pg_catalog.plpgsql"
1716 enable_extension "pg_trgm"
10071006 t . boolean "nhs_immunisations_api_primary_source"
10081007 t . string "nhs_immunisations_api_snomed_procedure_code"
10091008 t . string "nhs_immunisations_api_snomed_procedure_term"
1009+ t . string "nhs_immunisations_api_snomed_reason_code"
1010+ t . string "nhs_immunisations_api_snomed_reason_term"
10101011 t . datetime "nhs_immunisations_api_sync_pending_at"
10111012 t . datetime "nhs_immunisations_api_synced_at"
10121013 t . text "notes"
Original file line number Diff line number Diff line change 2222# nhs_immunisations_api_primary_source :boolean
2323# nhs_immunisations_api_snomed_procedure_code :string
2424# nhs_immunisations_api_snomed_procedure_term :string
25+ # nhs_immunisations_api_snomed_reason_code :string
26+ # nhs_immunisations_api_snomed_reason_term :string
2527# nhs_immunisations_api_sync_pending_at :datetime
2628# nhs_immunisations_api_synced_at :datetime
2729# notes :text
Original file line number Diff line number Diff line change 2222# nhs_immunisations_api_primary_source :boolean
2323# nhs_immunisations_api_snomed_procedure_code :string
2424# nhs_immunisations_api_snomed_procedure_term :string
25+ # nhs_immunisations_api_snomed_reason_code :string
26+ # nhs_immunisations_api_snomed_reason_term :string
2527# nhs_immunisations_api_sync_pending_at :datetime
2628# nhs_immunisations_api_synced_at :datetime
2729# notes :text
You can’t perform that action at this time.
0 commit comments