Code to get a Hash of attribute names and associated database types
Post.attribute_names.map {|n| [n.to_sym,Post.type_for_attribute(n).type]}.to_h |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment