2015-11-30から1日間の記事一覧

Rails の save, destroy は自動的に transaction でラップされる

save and destroy are automatically wrapped in a transaction Both save and destroy come wrapped in a transaction that ensures that whatever you do in validations or callbacks will happen under its protected cover. So you can use validations…