Ruby on Rails - SQLite I/O 에러 처리
Windows 환경에서 Console 로 접속하여 SQLite 에 데이터를 입력할때 I/O 에러가 뜨는 경우가 있습니다.'': SQLite3::IOException: disk I/O error: (ActiveRecord::StatementInvalid) 이럴경우 아래와 같이 기존 데이터를 백업해주고 재생성하면 해결됩니다.# 백업 생성cp storage/development.sqlite3 storage/development.sqlite3.backup# 데이터베이스 재생성rails db:droprails db:createrails db:migrate