Skip to content

A platform for community discussion. Free, open, simple.

DEV: Add a note to S3 migration task (#11738)

Jarek Radosz650e3d18c47f
diff --git a/lib/tasks/uploads.rake b/lib/tasks/uploads.rake
index 1c7a7432419..fd1955f7276 100644
--- a/lib/tasks/uploads.rake
+++ b/lib/tasks/uploads.rake
@@ -90,6 +90,9 @@ end
################################################################################
task "uploads:migrate_to_s3" => :environment do
+ STDOUT.puts("Please note that migrating to S3 is currently not reversible! \n[CTRL+c] to cancel, [ENTER] to continue")
+ STDIN.gets
+
ENV["RAILS_DB"] ? migrate_to_s3 : migrate_to_s3_all_sites
end