title: How to export table from heroku production database locally to excel from console using Ruby?
body: <p>I know how to export table in Rails to formated Excel file: <a href="http://railscasts.com/episodes/362-exporting-csv-and-excel">http://railscasts.com/episodes/362-exporting-csv-and-excel</a></p>
  
  <p>But how to do that from console.</p>