Support ActiveRecord 4.2