Add alter_record method