Get tests running again on ruby 1.9.3
Support activerecord 4.0.x