rmed active record