Fix incompatibility with ActiveRecord < 4.0.
Bump to 0.1.12.