Closed NikitaAvvakumov closed 9 years ago
can you send me a copy of the production db? I would like to test this PR
@razorcd PM sent on Slack
What is the plan B in case we get a problem in production?
@gmunumel Roll back the commits, restore db from backup. Painful but doable.
I guess you are going to try to apply this change at midnight. Are we gonna have a little test in prod? Do you have access to test it?
Yes, we have access to the production db, so we can make sure that all orphan records are still valid after the update. @razorcd ran this against a copy of the production db last night and everything looked fine. Let's be very confident in our code before merging, that way we won't have to keep our finger on the 'Alarm' button as we push to production :)
hahaha, yes. :D
:shipit:
Ready to go :+1:
https://osraav.atlassian.net/browse/OSRA-389 https://osraav.atlassian.net/browse/OSRA-390
Replace
father_alive
in the Orphan model withfather_deceased
to match OSRA spreadsheets.father_deceased
to orphans table and populate it with the inverse values of existingfather_alive
; removefather_alive
columnfather_alive
tofather_deceased
in the pending_orphans tablefather_deceased
instead offather_alive
and to use "Y" & "N" only (not Arabic words for 'dead' & 'alive')father_deceased
as the main point of referencefather_alive
tofather_deceased
in models, tests, views, etc.father_deceased