Overview
Drawing the Entity-Relationship Diagram of Rails.
Add this line to your application’s Gemfile:
gem 'draw_erd'
And then execute:
$ bundle
Add this line to your config/routes.rb:
mount DrawErd::Engine, at: '/rails/draw/erd'
Draw by selecting the models: