Answers for "get feild data type in rails"

0

ruby rails find data field type

@data.type_for_attribute('id').type
=> :integer
@data.type_for_attribute('address').type
=> :string
Posted by: Guest on March-28-2021

Browse Popular Code Answers by Language