I was told to add my entrance for rails 5 as an answer, so on request ...
First stop the rails server.
Secondly, run these 3 commands ...
rails db:drop rails db:schema:load rails db:reset
I donβt like copying files, so for me itβs easier and faster than deleting a file. Caution: whether you use my fix or not - always make a backup of your circuit somewhere every day (for example, with a repo system ... github / bitbucket).
I believe that "rake" can be used instead of rails for versions before rails 5, but did not check back on rails 3 or 2.
As @ govind-shaw said ... in any case, you should stop the rail server and start it again.
source share