开发者

Generate a single model in Railroad?

开发者 https://www.devze.com 2023-02-21 00:30 出处:网络
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 tha

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

精彩评论

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