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.rb
file. - Resulting
db.xml
file is available at the root of the cloned repo. - Copy the
db.xml
content and go to db.lewagon.org. - Click on
Save / Load
button on the left sidebar and paste theXML
code. - Click on
Load XML
button. - Replace tables as you wish.
- Enjoy the view 👀 !
Fork, clone, improve, pull.
Compatible with:
- Ruby 2.4.0
- Rails 5.0