integrate activerecord

integrate activerecord