Ensure requiring active_record, fix #1247

`rake ar:schema:load` and related tasks not working now.

This patch avoids monkey definitions of AR constants.