$ bundle exec rake db:reset command raising couldn't drop db/development.sqlite3

前端 未结 5 481
醉酒成梦
醉酒成梦 2021-02-04 02:32

I tried to run $ bundle exec rake db:reset and found the following on console

Couldn\'t drop db/development.sqlite3 : #

        
5条回答
  •  梦毁少年i
    2021-02-04 03:20

    Have been trying to resolve the same issue. Stopping Rails Server on Windows didn't help, but restarting the whole environment did the trick, bundle exec rake db:reset went through, but be sure not to start your server before that as it will call the same error. Continue with

    $ bundle exec rake db:reset
    $ bundle exec rake db:populate
    $ bundle exec rake test:prepare
    

    and start Rails Server after that.

提交回复
热议问题