Fix para que Rails 2.3.8 y la concurrencia con Sqlite3

Sqlite is powerful, fast and small. It’s so nice working with it! There’s only one problem: concurrency.

A few weeks ago, we started receiving these errors in one application: SQLite3::BusyException: database is locked

And we are not the only ones: http://stackoverflow.com/questions/78801/sqlite3busyexception. After some testing we found out that the “timeout” option in database.yml was being ignored. When Rails has to write several things at the same time to the DB, it should wait for a few seconds before failing. In our tests, Rails just crashed whenever two write peticions arrived at the same time :(.