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

前端 未结 16 2176
时光取名叫无心
时光取名叫无心 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 07:02

    Please check if your rails console or server is running in another tab and then

    stop the rails server and console.

    then run

     rake db:drop
    

提交回复
热议问题