support activerecord v4.1