title: Using Rails console to insert an array of data
body: <p>If I want to insert a record into my model I usually do something like this within the Rails console:</p>
  
  <pre><code>m = ModelName.create(name: 'This is my name')
  m.save
  </code></pre>
  
  <p>But if I have an array</p>
  
  <pre><code>['Name 1', 'Name 2', 'Name 3' ]
  </code></pre>
  
  <p>How can I create a record for each of the items in the array using the Rails console?</p>