我有三个表:项目,任务和标签。 在开发模式下迁移数据库时,一切正常。
但是,当我在生产模式下运行rake db schema load命令时,它没有迁移“任务”表,因此该应用程序无法正常工作。
我查看了我的production.log文件,但是那里什么也没有。
我在这里想念什么?
如果愿意,可以从github分叉它: http : //github.com/senthilnambi/MultipleM
我正在使用sqlite3,顺便说一句。
谢谢
快速浏览一下schema.rb文件,可以看到以下行:
# Could not dump table "tasks" because of following StandardError
# Unknown type 'body' for column 'reason'
看起来您需要从迁移中重新创建架构文件以消除此错误。