Last Updated on November 29, 2019 by Christopher G Mendla
I wanted to visualize the associations in a rails project. There are a number of gems that will do this.
I found the following guide
https://ryanboland.com/blog/creating-a-database-diagram-with-rails-erd/
You simply add the gem to your gemfile
group :development do
gem ‘rails-erd’
end
Since I’m running ubuntu, I had to install Graphviz with
sudo apt-get install graphviz
For it’s basic usage, just do a bundle install, then run erd from the command line