Basic ActiveRecord 4 compatibility