Commit 6d6c2f6c

mo k <mo@mokhan.ca>
2012-10-07 21:58:46
correct the down script.
1 parent 9ffe5f7
db/migrate/20121007153155_migrate_images_to_photos.rb
@@ -13,7 +13,7 @@ class MigrateImagesToPhotos < ActiveRecord::Migration
   end
 
   def down
-    Photo.all.where(:is_primary => true).each do |photo|
+    Photo.where(:is_primary => true).each do |photo|
       photo.destroy!
     end
     remove_column :photos, :is_primary