Commit 6d6c2f6c
Changed files (1)
db
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