DBviewer is a simple tool to read a Rails' schema.rb file and create an XML file representing a database schema readable on db.lewagon.org.
This can be useful when joining a huge existing Rails project with no DB representation.
The program needs ActiveSupport to run so:
gem install activesupport- Clone the repo and launch
app.rb. - You must enter the filepath to a
schema.rbfile. - Resulting
db.xmlfile is available at the root of the cloned repo. - Copy the
db.xmlcontent and go to db.lewagon.org. - Click on
Save / Loadbutton on the left sidebar and paste theXMLcode. - Click on
Load XMLbutton. - Replace tables as you wish.
- Enjoy the view 👀 !
Fork, clone, improve, pull.
Compatible with:
- Ruby 2.4.0
- Rails 5.0