<html><head></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><span class="Apple-style-span" style="font-family: monospace; ">Try editing 20091031110719_photo_filename_status_indexes.rb and replacing :photos_status with "photos_status", and :photos_filename with "photos_filename" in both places.</span><span class="Apple-style-span" style="font-family: monospace; "><br></span><span class="Apple-style-span" style="font-family: monospace; "><br></span><span class="Apple-style-span" style="font-family: monospace; ">Please realise that this project is not my primary focus, the fact that I haven't made any code changes in a year should really suggest this. I'm very sorry that I wasn't able to reply to your emails quickly enough for you but I have been away this weekend and not really checking my emails at all.</span><span class="Apple-style-span" style="font-family: monospace; "><br></span><span class="Apple-style-span" style="font-family: monospace; "><br></span><span class="Apple-style-span" style="font-family: monospace; ">John</span><div><font class="Apple-style-span" face="monospace"><br></font><div><div>On 7 Nov 2010, at 01:54, H.S.Rai wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><div>I encountered one error during db:migrate, before uploading photo and<br>also now after uploading one photo, if I use "rake".<br><br>It says "undefined method `length' for :photos_status:Symbol"<br><br>On Sat, Nov 6, 2010 at 9:16 PM, H.S.Rai <<a href="mailto:hardeep.rai@gmail.com">hardeep.rai@gmail.com</a>> wrote:<br><blockquote type="cite">... was able to login, photo uploaded. It shows that<br></blockquote><blockquote type="cite">photo as "Pending"<br></blockquote><br>-- <br>H.S.Rai<br><br>meet@meet:~/OSV/OpenStreetView$ rake<br>(in /home/meet/OSV/OpenStreetView)<br>DEPRECATION WARNING: Rake tasks in<br>vendor/plugins/restful_authentication/tasks are deprecated. Use<br>lib/tasks instead. (called from<br>/var/lib/gems/1.8/gems/rails-2.3.8/lib/tasks/rails.rb:10)<br>You have 1 pending migrations:<br>  20091031110719 PhotoFilenameStatusIndexes<br>Run "rake db:migrate" to update your database then try again.<br>meet@meet:~/OSV/OpenStreetView$ rake db:migrate<br>(in /home/meet/OSV/OpenStreetView)<br>DEPRECATION WARNING: Rake tasks in<br>vendor/plugins/restful_authentication/tasks are deprecated. Use<br>lib/tasks instead. (called from<br>/var/lib/gems/1.8/gems/rails-2.3.8/lib/tasks/rails.rb:10)<br>==  PhotoFilenameStatusIndexes: migrating =====================================<br>-- add_index(:photos, [:status], {:name=>:photos_status})<br>rake aborted!<br>An error has occurred, all later migrations canceled:<br><br>undefined method `length' for :photos_status:Symbol<br><br>_______________________________________________<br>Photos mailing list<br><a href="mailto:Photos@openstreetmap.org">Photos@openstreetmap.org</a><br>http://lists.openstreetmap.org/listinfo/photos<br></div></blockquote></div><br></div></body></html>