开发者

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 sep开发者_运维百科arate diagram manually.

Do you have any experiences on that subject?


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.

Visualize Rails schema.rb with tool/plugin/script


(source: rubyforge.org)


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

https://github.com/preston/railroady


You can also checkout Schemapper for Rails 3.0+


Confirming the top answer as the way to go. You can take the DOT output from Railroad to graphviz-dev.appspot.com to generate the image online.

As others have stated, it would be nice if you could manually rearrange the output.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜