When I\'m trying to create or destroy a record (running on SQLite3) in my Ruby on Rails app (or in console as well) I\'m getting an SQL Exceptio
It is a good idea to never to make an instance method named "hash". This is used by a ton of ruby objects for comparison and equality. No matter weather your using SQLite, or anything, a custom hash method should only be done when you know what you want from it's results. In this case ActiveRecord made the method for you. I would rename the column :)
Perhaps you should try to look here: Rails Tests Fail With Sqlite3 Looks like they may have found a workaround.
Holy smokes... The situation is in-fact that the field name "hash" causes sqlite3 to throw this very unhelpful error. Tricky one...