Commit 42c5630b

mo khan <mo@mokhan.ca>
2014-09-23 02:07:06
update photos watermark from the creation.
1 parent 5dfbb2f
Changed files (1)
script/migrate-photos.rb
@@ -15,6 +15,7 @@ class Command
         original = OriginalVersion.new(photo)
         key = original.create_key
         puts "processing #{key}"
+        photo.update_attribute(:watermark, photo.imageable.try(:watermark)) unless photo.imageable.try(:watermark).blank?
         storage.download(key) do |file|
           bus.publish(:upload_photo, {
             photo_id: photo.id,