Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Visualize Rails schema.rb with tool/plugin/script

I am looking for a tiny tool/script/plugin to visualize my Rails schema.rb file so that our project does not have to maintain a separate diagram manually.

Do you have any experiences on that subject?

like image 414
Jesper Rønn-Jensen Avatar asked Jan 11 '10 09:01

Jesper Rønn-Jensen


2 Answers

Check out RailRoad.

It creates diagrams for models and controllers. I bet it will do what you want. It produces DOT files which can be viewed with Graphviz or other programs.

I've had some success with it, but when you have a ton of models, you may need to do some manual rearrangement to get a decent looking diagram.

RailRoad example
(source: rubyforge.org)

like image 176
Luke Francl Avatar answered Nov 02 '22 11:11

Luke Francl


Checkout RailRoady for a Rails 3 project. It's forked from RailRoad.

https://github.com/preston/railroady

like image 32
Ganesh Shankar Avatar answered Nov 02 '22 09:11

Ganesh Shankar