Change gemfile to allow usage with AR 4.0+

Not sure if this is really adequate, but the specs pass with AR 4.0.2