Add active record transaction workaround