How to determine column data type of nil activerecord attributes?

Hi,

How do I query nil activerecord attributes for their schema datatype?
(I want to select attributes for handling by datatype in a kind of
metaprogamming approach…)

Thanks,

Lille