rake db:test:prepare是像this这样的PG问题的一个很好的解决方案。
“PG::UndefinedTable: ERROR: relation不存在”具有正确的Rails命名和约定“,其中我不能只执行rake db:migrate RAILS_ENV=production
例如,当你不能为here讨论的一个bug创建测试数据库时:"PG undefinedtable error relation not exist“
围绕此错误的所有内容都是"PG::UndefinedTable: ERROR: relation xxxxx PG exist“