Import csv files preprocesing headers to fit database attributes

I am new to rails I want to upload csv files to populate a data base but preprocessing the headers first I tried using activestorage adnd alias_attributes But is not working at all