相关的 travis-ci 构建位于: http://travis-ci.org/#!/NZOI/nztrain/builds/2046207
此时 db:migrate 或 db:test:prepare 命令都不起作用。我已经检查过 db/schema.rb 文件在那里,所以它应该能够将模式加载到数据库中。
Github 代码也可从 https://github.com/NZOI/nztrain/tree/a710ef72089ae589a53a7ca0187f73e7f9bf4cc0 获得
最佳答案
错误原因:
- rake 数据库:???运行初始值设定项
- 初始化器访问一个表,提取存储在名为“settings”的数据库表中的设置
- travis-ci 在数据库中没有任何表的情况下启动
因为初始化程序在 db:??更改创建表,发生错误
关于ruby-on-rails - Travis CI "rake db:migrate"或 "rake db:test:prepare"导致 rake 中止! PG::错误:错误:关系 "settings"不存在,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/11826273/