0

I got this error in every part of my rails app. The solution recommended in this question is good when the data is not important to lose.But my problem is I need the data and I don't know how to fix this error.please help.

Afsanefda
  • 3,069
  • 6
  • 36
  • 76

1 Answers1

0

It seems that your sqlite file is broken. Try it:
sqlite3 prodcution.db "PRAGMA integrity_check;"
Pragma statements supported by SQLite
 
Once you backup and rebuild db, it may work.
sqlite3 prodcution.db ".dump" | sqlite3 prodcution.db.new

rochefort
  • 136
  • 6