Foon wrote:
> I will opt for the string column storage solution since I definitely
> need to have 64-bit unsigned integers. Moreover, that would enable my
> applicaton to handle even larger integers would that become a
> requirement, which is very likely.
> Regarding my app, each value will be converted to int in the following
> fashion, making the conversion transparent and fluid:
> 
> def after_initialize
>   self.value = value.to_i
> end

You could make this slightly more Railsy with composed_of, too.

> 
> No conversion to string is required while persisting the instance as
> Rails take care of it by its own. Not that bad.
> Thanks for your help Fred and Jeffrey

Best,
--
Marnen Laibow-Koser
http://www.marnen.org
[email protected]
-- 
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