gpt4 book ai didi

ruby-on-rails - ActiveRecord::StatementInvalid: PGError: ERROR: 关系 "instructions"不存在

转载 作者:行者123 更新时间:2023-12-03 18:11:32 25 4
gpt4 key购买 nike

你好,

我在测试 Rails 应用程序时遇到此错误。我没有名为“说明”的表。但它显示了一个错误,如“错误:关系“指令”不存在”。总的来说,我在 64 次测试中遇到了与 64 次错误相同的错误。

我使用的是 rails 3.0、Ruby 1.9.2、Netbeans 6.8。

PS:我没有为 rails 应用程序创建说明手册。

错误:
test_should_get_index(HomeControllerTest):
ActiveRecord::StatementInvalid: PGError: ERROR: 关系“指令”不存在
第 1 行:从“说明”中删除
^
:从“说明”中删除


请在这方面帮助我

最佳答案

您可能想运行 rake db:test:prepare ,表说明不存在于您的测试数据库中。

关于ruby-on-rails - ActiveRecord::StatementInvalid: PGError: ERROR: 关系 "instructions"不存在,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/5028036/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com