as a side note i had to run ocra with --no-autoload as activerecord modules in my script were failing without it due to the RbConfig issue.
here is how i got active_record running w no autoload. this order is required{heh} in order for it to work. you may have to adjust the adapter line to set to your db adapter if not using sql server
require 'ODBC'
require 'active_support/notifications/instrumenter'
require 'active_record'
require 'active_record/dynamic_finder_match'
require 'active_record/dynamic_scope_match'
require 'active_record/connection_adapters/sqlserver/core_ext/odbc'
require 'activerecord-sqlserver-adapter'
require 'active_record/result'