Change some version checks to use ActiveRecord.

Trying to use ActiveRecord fixtures in my tests for a gem that uses ActiveRecord, but doesn't depend on all of Rails. Currently rspec-rails makes some checks based on `::Rails::VERSION`.

This change uses `::ActiveRecord::VERSION` for those checks related to ActiveRecord fixtures, allowing fixtures to be used without including Rails.