add ActiveRecord::Base.clear_active_connections! for rails 4 compatibility.