Workaround:
The error is related to Vagrant (or VirtualBox) user public folders. I could not figure out how to solve it, but there is a workaround. Instead of working with the abusive user shared folder (~ / shared / sample_app) defined in the vagrantfile, I moved the application folder to the standard shared folder inside the VM root (/ vagrant) . Now I am still getting file synchronization on my main machine, and the problem disappeared.
UPDATE 1
Another conclusion reached today. Each time bundle exec rake db:migrate or rails generate migration an error is returned.
Another workaround
1 - Delete the test.sqlite3 file.
2 - Copy the development.sqlite3 file
3 - Insert and change the name to test.sqlite3
* - Just migrated for testing, and this seems like a permanent solution.
source share