Make all models compatible with transactions