Skip to content

Commit

Permalink
Merge pull request #17364 from krauselukas/mark_data_migration_as_done
Browse files Browse the repository at this point in the history
Mark data migration as executed after replacing rake task is performed
  • Loading branch information
krauselukas authored Feb 12, 2025
2 parents ab56884 + 49ee471 commit 859a8d8
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/api/lib/tasks/data_backfill.rake
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,12 @@ namespace :data do
end
end
# rubocop:enable Rails/SkipsModelValidations

# this rake task replaces the 20250131143734_backfill_sources_on_bs_request_actions.rb data migration
# after this task has been performed, we need to mark the data migration as executed
if DataMigrate::DatabaseTasks.pending_data_migrations.find { |data_migration| data_migration[:version] == 20_250_131_143_734 }.present?
DataMigrate::DataSchemaMigration.create_version('20250131143734')
end
end
end
end

0 comments on commit 859a8d8

Please sign in to comment.