rspec returns “PG::Error: ERROR: relation ”table_name“ does not exist”

后端 未结 4 903
礼貌的吻别
礼貌的吻别 2021-02-05 20:43

Environment is REE(2011.12) on rvm, rspec 2.8.0, rails 3.0.6, and pg 0.13.2. Using PostgreSQL 8.3.17 on CentOS 5.6. The db:migrate have work correctly. But rspec have got follow

4条回答
  •  有刺的猬
    2021-02-05 21:34

    This usually happens when you have rspec running while migrating (usually via guard). A simple solution is to quit guard, do the migration and restart guard.

提交回复
热议问题