Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Mark data migration as executed after replacing rake task is performed #17364

Merged
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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