title: How to map csv headers to sql field name in rails?
body: <p>I have a csv file with headers <code>name, dept, class</code>. And the table in my sql database field has columns named <code>id, name, class, dept, block</code>.</p>
  
  <p>How do I store and map these csv content into the sql database?</p>