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.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 :eyes: !
Contribution
Fork, clone, improve, pull.
Version
Compatible with:
- Ruby 2.4.0
- Rails 5.0