Require 'active_record/base' in rake task

This may cause `Rails.application.config.active_record` inside of
an initializer no effects.
Merge pull request #526 from yahonda/r523

Require 'active_record/base' in rake task