We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 70363fa commit b207112Copy full SHA for b207112
db/migrate/20250214204624_move_azure_blobs_to_s3.rb
@@ -1,6 +1,8 @@
1
class MoveAzureBlobsToS3 < ActiveRecord::Migration[7.2]
2
# https://stackoverflow.com/questions/71699789/activestorage-transfer-all-assets-from-one-bucket-to-another-bucket
3
def up
4
+ return unless Rails.env.staging?
5
+
6
source_service = ActiveStorage::Blob.services.fetch(:azure)
7
destination_service = ActiveStorage::Blob.services.fetch(:amazon)
8
0 commit comments