Add explicit dependencies on activerecord:migration

This patch enables `require 'nulldb'` outside rails

ActiveRecord::Migration is required for L45
ActiveRecord::ActiveRecordError is required for ActiveRecord::Migration