Support ActiveRecord 3.0.x