use type_for_attribute when available
column_for_attribute is deprecated in rails 4.2