-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add unknown and pre_september_2021 induction programmes
ECF started in September 2021 so any induction periods that started before then shouldn't have an ECF programme type; they will be assigned pre_september_2021. Any induction period that starts on or after 1 Septmeber 2021 should have an induction type, but some in DQT don't so we're setting them as unknown. Refs #65
- Loading branch information
1 parent
f0808ce
commit 3ae6ae4
Showing
6 changed files
with
31 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
12 changes: 12 additions & 0 deletions
12
db/migrate/20250130172854_add_unknown_and_pre_september_2021_induction_programmes.rb
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
class AddUnknownAndPreSeptember2021InductionProgrammes < ActiveRecord::Migration[8.0] | ||
def change | ||
# these two new types are here to support records imported from DQT | ||
# some are after September 2021 and have no induction programme; they're not | ||
# really 'valid' but we need to record them | ||
add_enum_value :induction_programme, 'unknown' | ||
# any that started before september 2021 and have no induction programme | ||
# are valid, because the ECF induction programmes didn't exist when they | ||
# were openend - again they don't need fixing but should be recorded | ||
add_enum_value :induction_programme, 'pre_september_2021' | ||
end | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters