get feild data type in rails code example
Example: ruby rails find data field type
@data.type_for_attribute('id').type
=> :integer
@data.type_for_attribute('address').type
=> :string
@data.type_for_attribute('id').type
=> :integer
@data.type_for_attribute('address').type
=> :string