How to create a database schema diagram for a single application using ActiveRecord?

I want to generate graphs to describe relationships within an application using ActiveRecord, is there any stone for this?

such as this database graph

+8
ruby database ruby-on-rails activerecord schema
source share
1 answer

There was a good stone for this: https://github.com/amatsuda/erd

But, as I see it, this was the last update 2 years ago.

According to README, it has the following functions:

  • Erd draws an ER diagram based on your database of applications and models.
  • You can drag the positions of each model.
  • You can use DB schema manipulations such as add column , rename column , alter column , create model (as well as table) and drop table
  • Erd then creates the migration files on the server
  • And you can run every migration in your browser.
+1
source share

All Articles