开发者

Generate a single model in Railroad?

I'm using the railroad gem, and I can generate an entire map of my application just fine - but I'd like to generate associations for just a s开发者_如何学编程ingle model, is there some way to do that?


If you are using this fork (that has my commits to enable specifying models)

https://github.com/tobias/RailRoad (install with gem install tobias-railroad)

Then you can just add

--specify app/models/user.rb

to your railroad command to plot a single model's associations

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜