Works with rails42

/cc @MSch 

http://edgeguides.rubyonrails.org/4_2_release_notes.html#railties-removals
http://edgeguides.rubyonrails.org/4_2_release_notes.html#active-record-removals