ActiveRecord::Transactions::ClassMethods

Active Record Transactions Transactions are protective blocks where SQL statements are only permanent if they can all succeed as one atomic action.