ActiveRecord::DangerousAttributeError
(model_name is defined by Active Record.
Check to make sure that you don't have an attribute or method with the same name.)
数据库表中有 model_name
(不是 Rails 建的,是原有的表)
但是想用 Rails 写了项目(主要是用来迁移数据)
但是遇到这个问题有点头疼。暂时没有找到方法解决。