RoR multi-table transaction appears to be a mess. RoR ���������� ������������ �����, ��� ��������������, ����� ����������. You have to create transactions on each table. �� ������ ������� ������ �� ������ �������. In essence it isn't really multi-table transaction. �� ���� ���� ��� �� ������� �������������� ������ ������.

Also nested transactions do not work as expected. ����� ����, ��������� ���������� �� �������� ���, ��� ���������. If the outer transaction fails then the data is in inconsistent state as the inner transaction has succeeded. ���� ����������� ������, �� ����� ������ � �����������, ��� ���������� ������ �������. Then you will have to manually reverse the effect of inner transaction(s) to bring the database back to a consistent state. ����� ��� �������� ������� �������� ������ ���������� ������ (�) ��� ���������� ������ � ���������������� ���������������.

Source: ��������: RoR Wiki RoR Wiki via ����� LinuxIntegrators

Caution: Wiki is modifiable by anyone, so in effect the wiki information on which this article is based may be incorrect. ��������: Wiki �������� ����������� ���-����, ������� � ���� ���� ����������, �� ������� ��� ������ �������� ����� ���� ���������. The last changes were made anonymously. ��������� ��������� ���� ������� ��������.