【发布时间】:2018-09-23 15:21:03
【问题描述】:
我正在使用 ruby 2.5.1、rails 5.2.0rc2 和注释 2.7.2。但是,当我运行rails db:migrate annotate gem 时会抛出错误:
Unable to annotate app/models/a.rb: can't modify frozen String
Unable to annotate app/models/a.rb: no implicit conversion of nil into Array
Unable to annotate app/models/b.rb: can't modify frozen String
Unable to annotate app/models/b.rb: no implicit conversion of nil into Array
Unable to annotate app/models/c.rb: can't modify frozen String
Unable to annotate app/models/c.rb: no implicit conversion of nil into Array
我发现设置'show_indexes' => 'false',注释了模型,但我也需要查看索引。
有解决办法吗?
【问题讨论】:
-
我认为 rails 5 github.com/ctran/annotate_models/issues/538有一些问题
标签: ruby-on-rails ruby annotate