title: Reverse Engineering (Generating) Tables or Database Schema from Models and Views in Ruby on Rails
body: <p><em><strong>Update: The Question is Still Open, any reviews, comments are always welcome</em></strong></p>
  
  <p>I am having an <strong>existing rails project</strong> in which some important files and directories has been <strong>missed</strong>.</p>
  
  <p>project rails version (2.3.8) i found it in environment.rb </p>
  
  <p>currently what i am having is </p>
  
  <pre><code>app
     controllers (already fully coded)
     helpers  (already fully coded)
     models (already fully coded) 
     reports (already fully coded)
     views  (already fully coded)
  
  config ---&gt; default configurations (already fully coded)
  lib ---&gt; contains nothing
  public --&gt; contains images and scripts (already fully coded)
  script ---&gt; contains server,runner,plugin,dbconsole....
  </code></pre>
  
  <p>app directory fully contains working state of codes, app/model contains more than 100 .rb files , so i assume it will be more than 100 tables</p>
  
  <p>the mainly missing things are <strong><em>db directory, .gem file, rake file, doc, test, vendor, database,schema.rb and migrations</em></strong> </p>
  
  <p><strong>Note:</strong>
    i don't  have the table schema and database for that project</p>
  
  <p><strong>i am in Need to generate tables or complete database from models and views and 
  i am looking for reverse engineering kind of stuff for generating db schema from models or views</strong></p>
  
  <p>I am newbie to rails and i am from java background , in java by using hibernate there is an pojo(model in rails) to database option available, i am looking  for similar kind of stuffs for rails , and my main aim to run that project , so guys please help me.</p>