Santosh R patil
2007-Mar-06 14:30 UTC
who to rollbacking the database when system is switched off
Hi, Can any one help me who to rollbacking the database when system is switched off. i.e. how to use rollback and commit in ruby -- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
Ilan Berci
2007-Mar-06 16:50 UTC
Re: who to rollbacking the database when system is switched
Santosh R patil wrote:> Hi, > > Can any one help me > > > who to rollbacking the database when system is switched off. > > i.e. how to use rollback and commit in rubylook at transactions: http://api.rubyonrails.org/classes/ActiveRecord/Transactions/ClassMethods.html#M000681 Your code works within the transaction {block} and automatically commits (or rollbacks ) as needed ilan -- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---