0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 3 years have passed since last update.

About Rails ERD📗

Railsのテーブル情報を自動生成するためのgem
https://github.com/voormedia/rails-erd
ER図をpdfで出力することができる。

こんな感じ⬇️
image.png

Getting started 🎉

for mac

brew intall graphviz

gemfile
gem install ‘rails-erd’, group: :development
  • 設定でmigrationの度に自動生成することも可能

Pros and cons

👍

クライアント・新入メンバーへの説明するのに便利

👎

関連にもよるがテーブル数が50超えてくるとごちゃごちゃしてすごく見づらい

内部の開発に関しては、モデル数20以下の場合annotateで十分
ある程度の規模のサービスの場合、LucidChartやdraw.ioで作図するするのがオススメ

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?