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
精彩评论