otr-activerecord
otr-activerecord copied to clipboard
using diagram generators
I was wondering if it was possible to generate diagrams for otr-activerecord with things like https://github.com/voormedia/rails-erd ?
I just tried and got:
$ bundle exec erd
Loading application in my-app'...
Failed: NameError: uninitialized constant RailsERD::CLI::ActiveRecord
I also tried https://github.com/preston/railroady and that failed with:
$ bundle exec rake diagram:all
rake aborted!
Don't know how to build task 'diagram:all' (See the list of available tasks with `rake --tasks`)
ah, I figured it out - got it to work via adding the following to the end of our Rakefile:
require "rails_erd/diagram/graphviz"
task :default do
RailsERD::Diagram::Graphviz.create
end
via https://voormedia.github.io/rails-erd/install.html
then running bundle exec rake