title: save a text from text file through rails console
body: <p>like in title - I want to save a content of a text file in database (and couple other things) through rails console - how to do it?</p>
  
  <p>I'm entering rails console by:
  <code>rails c</code>
  and then I should do</p>
  
  <pre><code>`MyItem.create! body: content_from_my_text_file, field1: '123', field2: 'abc'
  </code></pre>
  
  <p>but how force rails console to read from file and write the content to the database? Is there any simple solution? Please help!</p>