Skip to content

Commit

Permalink
Merge pull request #3347 from DFE-Digital/make-verification-timestamp…
Browse files Browse the repository at this point in the history
…s-available-in-reports-part-2

make verification timestamps available in reports part 2
  • Loading branch information
rjlynch authored Oct 28, 2024
2 parents fe2e80b + 16f3548 commit efd91ca
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
8 changes: 8 additions & 0 deletions db/migrate/20241028110426_back_fill_claims_verified_at.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
class BackFillClaimsVerifiedAt < ActiveRecord::Migration[7.0]
def change
Policies::FurtherEducationPayments::Eligibility
.includes(:claim).where.not(verification: {}).find_each do |eligibility|
eligibility.claim.update!(verified_at: eligibility.verification["created_at"])
end
end
end
2 changes: 1 addition & 1 deletion db/schema.rb
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
#
# It's strongly recommended that you check this file into your version control system.

ActiveRecord::Schema[7.0].define(version: 2024_10_28_095040) do
ActiveRecord::Schema[7.0].define(version: 2024_10_28_110426) do
# These are extensions that must be enabled in order to support this database
enable_extension "citext"
enable_extension "pg_trgm"
Expand Down

0 comments on commit efd91ca

Please sign in to comment.