Use Active record transaction