kla/php-activerecord — pull request #228 by koenpunt (2012-08-30 11:22:52+00:00)
Title: validate_uniqueness_of created now works on column with reserved mysql words

I had a table with a column `key`. Adding `validates_uniqueness_of` to it created invalid SQL because of unquoted column name.

This fixes that issue and uses `Connection::quote_name()` to add quotes to the column names