Skip to content

Commit

Permalink
Try to fix migration script
Browse files Browse the repository at this point in the history
  • Loading branch information
chrztoph committed Dec 5, 2023
1 parent 4a1258e commit b10044d
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/tasks/migrate_to_s3.rake
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@ namespace :active_storage do
Rails.application.config.to_prepare { ActiveStorage::Blob.send(:include, AsDownloadPatch) }

def migrate(from, to)
puts ActiveStorage::Blob # needed because otherwise error is thrown
configs = Rails.configuration.active_storage.service_configurations
from_service = ActiveStorage::Service.configure from, configs
to_service = ActiveStorage::Service.configure to, configs
Expand Down

0 comments on commit b10044d

Please sign in to comment.