Commit eaaa9aab

mo k <mo@mokhan.ca>
2012-12-11 14:28:22
add migration script to remigrate each creation.
1 parent 19ea4b2
Changed files (1)
db/migrate/20121211142144_re_migrate_creations.rb
@@ -0,0 +1,10 @@
+class ReMigrateCreations < ActiveRecord::Migration
+  def up
+    Creation.all.each_with_index do |creation, index|
+      Delayed::Job.enqueue MigratePrimaryImage.new(creation.id)
+    end
+  end
+
+  def down
+  end
+end