title: Rails console output to recreate objects
body: <p>I accidentally deleted 1000 objects from a database and now trying to recreate these objects.  Thankfully I was able to scroll through my console output and find the records. I copy and pasted the console output which is in this (greatly shortened) format:</p>
  
  <pre><code>[#&lt;Assignment id: 276503, school_id: 2091, listing_id: 251572, created_at: "2018-08-30 05:02:36", updated_at: "2018-08-30 05:02:36"&gt;, #&lt;Assignment id: 279532, school_id: 1233, listing_id: 252702, created_at: "2018-08-30 06:19:12", updated_at: "2018-08-30 06:19:12"&gt;]
  #...
  </code></pre>
  
  <p>I can't get the console to assign this output to a variable so I can figure out how to use this data to recreate the objects in the db:</p>
  
  <pre><code>irb(main):040:0&gt; a = [#&lt;Assignment id: 276503, school_id: 2091, listing_id: 251572, created_at: "2018-08-30 05:02:36", updated_at: "2018-08-30 05:02:36"&gt;, #&lt;Assignment id: 279532, school_id: 1233, listing_id: 252702, created_at: "2018-08-30 06:19:12", updated_at: "2018-08-30 06:19:12"&gt;]
  irb(main):041:1*
  </code></pre>
  
  <p>Does anyone have ideas how to turn this console output back into objects in my db?</p>