safeguard on absolutify rake task

This commit is contained in:
danielvincent 2010-12-19 22:46:41 -08:00 committed by zhitomirskiyi
parent 7f87825186
commit 7477a22421

View file

@ -39,6 +39,7 @@ namespace :migrations do
require File.join(Rails.root,"config/environment")
Photo.all.each do |photo|
unless photo.remote_photo_path
# extract root
pod_url = photo.person.url
pod_url.chop! if pod_url[-1,1] == '/'
@ -58,3 +59,4 @@ namespace :migrations do
end
end
end
end