How to display mnesia records with corresponding field names?

Replace record_info(fields,T)with mnesia:table_info