Comment puis-je migrer des fichiers de l'ancien schéma de téléchargement (default/XXX) vers le nouveau (default/original/{1,2}X) ?

Yes, this was recently added by @tgxworld. I’ve fixed the query in my post and in the uploads:migrate_to_s3 rake task.

Upload.by_users.where("url NOT LIKE '//%' AND url NOT LIKE '/uploads/default/original/_X/%'").exists?

Didn’t get a chance to look at it just yet…

3 « J'aime »