# Relation Schemas and Attribute Types

**URL:** <https://discourse.rom-rb.org/t/relation-schemas-and-attribute-types/534>\
**Category:** Issues\
**Created:** [April 18, 2022, 7:07pm UTC](https://discourse.rom-rb.org/t/relation-schemas-and-attribute-types/534 "2022-04-18T19:07:30Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![codeslinger](https://avatars.discourse-cdn.com/v4/letter/c/e9a140/32.png) [@codeslinger](https://discourse.rom-rb.org/u/codeslinger)\
**Post date:** [April 18, 2022, 7:07pm UTC](https://discourse.rom-rb.org/t/relation-schemas-and-attribute-types/534/1 "2022-04-18T19:07:30Z")

</div>

Hi,  
I have a MySQL db with a field called “effective\_at” that has a type of “datetime”. I would like the read type of the attribute to be a ruby DateTime. With infer = true I get a ruby Time returned. I have tried overriding the attribute in the schema…

```auto
attribute :effective_at, Types::DateTime, read: Types::Nominal::DateTime

```

And I have tried setting infer = false with out achieving the result I would like.

I have gone over the guides and this seems like it should be straight forward. Can someone give some guidance?  
Many Thanks!
