Quando tentamos executar nossa migration no rails 2.2, usando o mysql como SGBD, nos deparamos com o seguinte erro:

The bundled mysql.rb driver has been removed from Rails 2.2. Please install the mysql gem and try again: gem install mysql.

Para instalar a gem no MAC OS X 10.5 Leopard, execute a seguinte linha se comando no seu terminal:

$ sudo env ARCHFLAGS="-arch i386" gem install mysql -- \
  --with-mysql-dir=/usr/local/mysql --with-mysql-lib=/usr/local/mysql/lib \
  --with-mysql-include=/usr/local/mysql/include

Você terá a seguinte saída:

Building native extensions.  This could take a while...
Successfully installed mysql-2.7
1 gem installed