Rails 2.0.2 ãããActiveRecord ã®ãã©ã³ã¶ã¯ã·ã§ã³ä¸ã«ããã¥ã¢ã«ã§rollbackã§ããããã«ãªã£ããããã 2.0.2 ããå transactionä¸ã«ä¾å¤ãçºçããããã¨ã§æ示çã«rollbackãã¦ããããã begin transaction do david.withdrawal(100) mary.deposit(100) raise # rollback !! end rescue # å¾å§æ«ã end raiseããä¾å¤ã¯rescueããªãã¡ããããªãã£ãã 2.0.2 以é transaction do david.withdrawal(100) mary.deposit(100) raise ActiveRecord::Rollback # rolls back the transaction that was otherwise going
{{#tags}}- {{label}}
{{/tags}}