# Oracle Date problem with legacy schema

**URL:** <https://www.ruby-forum.com/t/oracle-date-problem-with-legacy-schema/87724>\
**Category:** Rails\
**Created:** [March 5, 2007, 4:16pm UTC](https://www.ruby-forum.com/t/oracle-date-problem-with-legacy-schema/87724 "2007-03-05T16:16:25Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![CRichards](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/35a633/32.png) [@CRichards](https://www.ruby-forum.com/u/CRichards)\
**Post date:** [March 5, 2007, 4:16pm UTC](https://www.ruby-forum.com/t/oracle-date-problem-with-legacy-schema/87724/1 "2007-03-05T16:16:25Z")

</div>

Hi

One of my columns, acqon, stores the date and time of an event. RoR  
automatically converts it into a Date object and not a time object. So i  
am loosing some information.

I am at a loss how to correct this without changing the column name or  
creating a view. I am using Oracle.

Does anyone have a clue??

Thanks

Chris

---

<div class="post-metadata">

**Author:** ![CRichards](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/35a633/32.png) [@CRichards](https://www.ruby-forum.com/u/CRichards)\
**Post date:** [March 5, 2007, 7:10pm UTC](https://www.ruby-forum.com/t/oracle-date-problem-with-legacy-schema/87724/2 "2007-03-05T19:10:28Z")

</div>

I don’t have a clue but are you talking something like this?

> From the Api docs  
> attributes\_before\_type\_cast()  
> Returns a hash of cloned attributes before typecasting and  
> deserialization
