I have need of getting at some underlying database metadata for
ActiveRecord descendants.
Does anyone know if I can get access to the following attributes of the
underlying column for a given ActiveRecord object:
Is it a currency object?
Is it nullable?
Is it a signed int?
Is it searchable?
Column length
Column name
Column precision
Column scale
Column data type - how specific can I get here?
I’m ok with digging into the ActiveRecord::Base object if I have to and
mucking around with it.
I figure this metadata must be lingering somewhere in order for the
database operations to work.