dbviewer_beta
dbviewer_beta copied to clipboard
DBviewer
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.
Pre-requisites
The program needs ActiveSupport to run so:
gem install activesupport
Usage
- 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 :eyes: !
Contribution
Fork, clone, improve, pull.
Version
Compatible with:
- Ruby 2.4.0
- Rails 5.0