From 824a23ff28763466ce7e7add1dd8815cbeb4e2a7 Mon Sep 17 00:00:00 2001 From: Kenneth Lee Date: Tue, 5 Nov 2024 15:42:34 +0000 Subject: [PATCH] Reset column information for Claim on a migration A previous migration removing teacher_reference_number causes issues for this migration. --- db/migrate/20241028110426_back_fill_claims_verified_at.rb | 2 ++ 1 file changed, 2 insertions(+) diff --git a/db/migrate/20241028110426_back_fill_claims_verified_at.rb b/db/migrate/20241028110426_back_fill_claims_verified_at.rb index 14449ebad2..eac6fccd53 100644 --- a/db/migrate/20241028110426_back_fill_claims_verified_at.rb +++ b/db/migrate/20241028110426_back_fill_claims_verified_at.rb @@ -1,5 +1,7 @@ class BackFillClaimsVerifiedAt < ActiveRecord::Migration[7.0] def change + Claim.reset_column_information + Policies::FurtherEducationPayments::Eligibility .includes(:claim).where.not(verification: {}).find_each do |eligibility| eligibility.claim.update!(verified_at: eligibility.verification["created_at"])