Re: Newbie -- Migration Error

Colin Law
2009-06-12T20:45:41Z

2009/6/12 Caroline Blaker
<rails-mailing-list-ARtvInVfO7ksV2N9l4h3zg@public.gmane.org>:
>
> Paul Lynch wrote:
>> Look at line 16 of sfar_commercial.rb.  The error indicates that some
>> variable (or return value) is nil when then code was expecting an
>> integer.  My guess is that it was trying to index an array with nil
>> (hence the reference to ''[]'').
>>
>> On Jun 12, 1:54�pm, Caroline Blaker
<rails-mailing-l...@andreas-s.net>
>
> Ok - this line is as follows
>
>    property[:area] = data[map[''area_display'']]
>
> Not surprisingly this would refer to one of the columns that I just
> migrated out! Apparently the feed author has discontinued it and now
> that my databases are updated I''m getting this error. But I *did
migrate
> it out. I suppose this file does not  follow awareness of migrations.
>

All the migration does is to change the structure of the database.
That file (sfar_commercial.rb) is part of the application written by
the original builder.  Someone will have to work out what the code was
doing and work out what it should now do instead.

Good luck

Colin