On 20 Jan 2009, at 20:56, Louise Rains wrote:

>
> Frederick Cheung wrote:
>> On 20 Jan 2009, at 19:27, Louise Rains wrote:
>>
>>>
>>> When I do the migration and load the fixtures I get data in the
>>> key_number field of 0200699 for the first one, but 65600 for the 2nd
>>> one, unless I put quotes around "0200100".  What could be the reason
>>> for
>>> this?
>>>
>> because yml assumes that it's a number in base 8. with the quotes it
>> sees that it's a string and doesn't do anything with it.
>>
>> Fred
>
> Good answer, I knew that :)  Except, 0200699 has the leading 0 on it.
> Is it the fact that 0200699 has 9 in it - a non-base 8 digit?

I'd guess so.

Fred
>
>
> Thanks,
> Louise
> --  
> Posted via http://www.ruby-forum.com/.
>
> >


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to