title: Active record in rails
body: <p>Is there any way to insert record from file to database using active record?</p>
  
  <p>Suppose I have a file <code>test.txt</code> with the following content:</p>
  
  <pre><code>1,20,sonal
  3,34,Ram
  </code></pre>
  
  <p>I have a table <code>students</code> having fields <code>roll_nu</code>, <code>marks</code>, and <code>name</code>.</p>
  
  <p>I want to store the records of file in table using active record. How can I do this? </p>