Change some version checks to use ActiveRecord.

This allow using ActiveRecord fixtures without pulling in all of Rails.
Merge branch 'dpogue-rails-deps'

[Closes #805]
[Refs #804]