Adapter extensions for ActiveRecord