diff --git a/lib/tasks/migrate.rake b/lib/tasks/migrate.rake index 9648d29..d96461f 100644 --- a/lib/tasks/migrate.rake +++ b/lib/tasks/migrate.rake @@ -269,7 +269,8 @@ namespace :migrate do if i >= $panoramios[location] params["remote_#{column.to_s}_url".to_sym] = img['photo_file_url'] params[column.to_sym] = img['photo_file_url'].gsub(/^.*\/(.*)$/, '\1') - params[:cover_attribution_id] = img['owner_id'] + params[:cover_attribution_id] = img['photo_id'] + params[:cover_attribution_user_id] = img['owner_id'] params[:cover_attribution_name] = img['owner_name'] params[:cover_attribution_src] = 'panoramio' return params