Rails 2 and ActiveRecord 2 compatibility.