On Tue, Nov 19, 2013 at 10:36 AM, rusik <[email protected]> wrote:
> yes, it is string.

Uh, well.

If the datatype of that column were String, would you think you'd
be likely to get different results from bdate and bdate.to_s?

>> >> User.find(2).bdate
>> >> => Wed, 09 May 1945
>> >> User.find(2).bdate.to_s
>> >> => "1945-05-09"

-- 
Hassan Schroeder ------------------------ [email protected]
http://about.me/hassanschroeder
twitter: @hassan

-- 
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/rubyonrails-talk/CACmC4yBrz8Z1c7XdHDyGO6ozgWPvCUKyTWN3-uSX0_O4DaJMDQ%40mail.gmail.com.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to