8
8

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 5 years have passed since last update.

Rails4.2にあげたらrails-erdが動かなくなった

Last updated at Posted at 2014-12-25

※追記
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
8
8
5

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
8
8

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?