Skip to content

Commit

Permalink
Reset column information for Claim on a migration
Browse files Browse the repository at this point in the history
A previous migration removing teacher_reference_number causes issues for this migration.
  • Loading branch information
kenfodder committed Nov 5, 2024
1 parent 4997175 commit 824a23f
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions db/migrate/20241028110426_back_fill_claims_verified_at.rb
Original file line number Diff line number Diff line change
@@ -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"])
Expand Down

0 comments on commit 824a23f

Please sign in to comment.