Skip to content

Commit b207112

Browse files
committed
Only run on staging
1 parent 70363fa commit b207112

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

db/migrate/20250214204624_move_azure_blobs_to_s3.rb

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
class MoveAzureBlobsToS3 < ActiveRecord::Migration[7.2]
22
# https://stackoverflow.com/questions/71699789/activestorage-transfer-all-assets-from-one-bucket-to-another-bucket
33
def up
4+
return unless Rails.env.staging?
5+
46
source_service = ActiveStorage::Blob.services.fetch(:azure)
57
destination_service = ActiveStorage::Blob.services.fetch(:amazon)
68

0 commit comments

Comments
 (0)