Add support for ActiveRecord.

This passes all of the rspec and cucumber tests.