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

后端 未结 4 921
礼貌的吻别
礼貌的吻别 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:35

    Just hit this same error, nothing worked but dropping and re-creating the database, this fixed it for me.

    rake db:drop db:create db:migrate

提交回复
热议问题