※追記
4.2に対応したrails-erd
が出たようです。
以下のようなエラーメッセージが出て止まってしまうようになった。
erd
$ bundle exec erd
Loading application in 'myapp'...
Generating entity-relationship diagram for 13 models...
Failed: NoMethodError: undefined method `primary' for #<ActiveRecord::ConnectionAdapters::Column:0x00000007b842f8>
4.2になると動かなくなるようだ。
https://github.com/voormedia/rails-erd/issues/85
対応版があるみたいだけれど、現時点ではマージされていないようだったので、
以下のようにして対応版をインストールするようにした。
Gemfile
group :development, :test do
...
gem 'rails-erd', github: 'ready4god2513/rails-erd', branch: 'rails-4.2-support-fix'
end