diff --git a/lib/tasks/migrations/migrations.rake b/lib/tasks/migrations/migrations.rake index 2f1ce6a565..b000c8a88a 100755 --- a/lib/tasks/migrations/migrations.rake +++ b/lib/tasks/migrations/migrations.rake @@ -159,6 +159,10 @@ namespace :migrations do provider: r.owner.provider, room_settings: room_settings, shared_users_emails: shared_users_emails } } + if r.presentation.attached? + params[:room][:presentation] = { blob: Base64.encode64(r.presentation.blob.download), + filename: r.presentation.blob.filename.to_s } + end response = Net::HTTP.post(uri('rooms'), payload(params), COMMON[:headers])