updating activerecord reference to active_record