Rails + Postgres drop error: database is being accessed by other users

前端 未结 16 2158
时光取名叫无心
时光取名叫无心 2020-12-04 06:26

I have a rails application running over Postgres.

I have two servers: one for testing and the other for production.

Very often I need to clone the production

16条回答
  •  孤城傲影
    2020-12-04 06:55

    I had a similar error saying 1 user was using the database, I realized it was ME! I shut down my rails server and then did the rake:drop command and it worked!

提交回复
热议问题