Mavericks ruby ​​on rails SQLite3 problem

I already have the application on my local OS, and I am updating the OS to Mavericks. Something happened! After running rails s, the error looks like this: SQLite3::IOException: disk I/O error: PRAGMA table_info("users")

By the way, I use cancan in my local env.

Can someone help me with this?

+6
source share
1 answer

This happened to me when I switched to OSX Mavericks. My database turned out to be corrupt, with an error very similar to yours. The fall and recovery solved the problem.

Rails is easy to do with

rake db:drop db:create db:migrate db:seed

or combine the last 3:

rake db:drop db:setup

+2
source

Source: https://habr.com/ru/post/957694/


All Articles