I want to reset the database of my rails 5 project, but the rails db:reset
command is not working.
errormessage:
Permission denied @ unlink_internal - C:/sites5/dawnrebirth/db/development.sqlite3
Couldn't drop database 'db/development.sqlite3'
rails aborted!
Errno::EACCES: Permission denied @ unlink_internal - C:/sites5/dawnrebirth/db/development.sqlite3
bin/rails:4:in `require'
bin/rails:4:in `<main>'
Tasks: TOP => db:drop:_unsafe
(See full trace by running task with --trace)
db:drop
,db:create
,db:migrate
one after another fix the issue for me. (And rundb:seed
if want to populate some test data.) – Crate