November 7

0 comments

Creating Entity Relationship Diagrams in Rails.

By Christopher Mendla

November 7, 2017


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

Christopher Mendla

About the author

Leave a Reply

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

{"email":"Email address invalid","url":"Website address invalid","required":"Required field missing"}