几天前,我为rails创建了一个迁移,以添加Paperclip头像,但最终走向了不同的方向。作为Rails的新手,我不知道像我这样删除迁移文件是多么糟糕的想法。我的应用程序在本地运行得很好,但当运行heroku run rake db:migrate时,我得到的结果是:
undefined method `attachment' for #<ActiveRecord它还为schema.rb中删除的迁移中指定的<
当我尝试在Laravel的数据库中播种我的数据透视表时,我有一个问题。我得到了错误 Base table or view not found: 1146 Table 'user_cuisines' doesn't exist 我的表名实际上是user_cuisine,所以由于某种原因,laravel没有显示这个表。由于字母表的