rake aborted! ERROR: must be owner of database

前端 未结 2 1964
执笔经年
执笔经年 2021-02-07 19:54

I am working through Michael Hartl\'s excellent tutorial but when trying to prepare the test database with the command: bundle exec rake db:test:prepare I get this error messag

2条回答
  •  春和景丽
    2021-02-07 20:12

    Did you ensure the ownership of the test DB? try running the \l command on Postgres console client and check the ownerships. you can also try the following query:

    ALTER DATABASE sample_app_test OWNER TO demo_app;

提交回复
热议问题