Fix deprecation notices in Rails 4.0
Test across supported versions of Active Record