PG::UndefinedTable: ERROR: relation “…” does not exist

前端 未结 3 1013
南笙
南笙 2020-11-30 11:26

On migration I get the following error message:

PG::UndefinedTable: ERROR:  relation \"actioncodes\" does not exist
: ALTER TABLE \"organizations\" ADD CONST         


        
3条回答
  •  北海茫月
    2020-11-30 12:18

    I was also getting this error. If you are using a test database to run rspec make sure you run rake db:test:prepare in the terminal before running rspec.

提交回复
热议问题