Thoughts, information and reflections about technology

Creating Entity Relationship Diagrams in Rails.

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

Similar Posts:

Leave a Reply

Your email address will not be published. Required fields are marked *

Contact me
Archives
Categories
Amazon Disclosure

We are a participant in the Amazon Services LLC Associates Program, an affiliate advertising program designed to provide a means for us to earn fees by linking to Amazon.com and affiliated sites.