LoginSignup
6
2

More than 3 years have passed since last update.

rails-erd 設定(Rails6対応)

Last updated at Posted at 2020-04-21

rails-erdの導入

Gemfile
group :development do
  gem "rails-erd"
end

Rails6.0以降の場合は以下を設定

config/environments/development.rb
config.eager_load = true

実行

bundle exec erd

おすすめ実行オプション

bundle exec erd --attributes=foreign_keys,content #外部キーを明らかにし、他のカラムも表示

参考

6
2
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
6
2