私はそのようなコードを持っています:
Vhost.transaction do
domains.each do |domain|
unless domain.save
errors << domain.errors
end
end
unless vhost.save
errors << vhost.errors
end
end
domain.save または vhost.save のいずれかが失敗した場合、ロールバックを期待しています。しかし、ロールバックはありません。私は何を間違っていますか?