Add support for ActiveRecord 2.3