ruby rails find data field type 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