本文介绍了使用工具/插件/脚本可视化 Rails schema.rb的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我正在寻找一个小工具/脚本/插件来可视化我的 Rails schema.rb 文件,这样我们的项目就不必手动维护单独的图表.
你有这方面的经验吗?
解决方案查看 (来源:rubyforge)
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?
解决方案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.
(source: rubyforge)
更多推荐
使用工具/插件/脚本可视化 Rails schema.rb
发布评论