title: Lost my schema.rb! Can it be regenerated?
body: <p>Due to some deployment issues I stopped tracking schema.rb in git. Somehow I have stuffed this up and somewhere along the way my schema.rb file has disappeared.</p>
  
  <p>Is there a way of regenerating schema.rb from the database or from the migrations? I would prefer not to lose the existing data.</p>