My table field names are lowercase and the field names I get from CSV files are camelcase. Is there anyway I can convert the keys of an array of hashes to lowercase?
You could consider using underscore instead of downcase because this would also transform the CamelCase to camel_case notation, which is more Rubylike.
My personal preferences goes to using deep_transform_keys: hash.deep_transform_keys{|key| key.underscore.to_sym }
As transform_keys do not traverse the whole hash.