update new version for activerecord