find_or_create_by_name seems to broken when using SQLite

What works:

* it finds the object if it exists
* it creates an object if it doesn't exist

What doesn't work:

* the object that it returns, if it has to create the object, has an
id of 0, instead of the proper id of the newly created model

I'm not sure if it is only confined to SQLite, since I don't have MySQL
on my dev box. Has anyone run into this problem?

Ok, it seems is if I missed this:
http://scottstuff.net/blog/articles/2006/07/01/sqlite-3-and-ruby-finally-working-on-os-x

I already had swig installed, but maybe it was installed after
sqlite3-ruby, so I reinstalled sqlite3-ruby, and the correct id is
returned.