Ruby Rails Trouver le type de champ de données

@data.type_for_attribute('id').type
=> :integer
@data.type_for_attribute('address').type
=> :string
Ukulily