depends on ActiveRecord 4.0