Getting column names from a record set

account_all.first.attributes.keys

ed