次のコードがあります
@user = User.find(params[:id])
if (@user.activation_status == "active")
#some code here
@user.update_attribute('activation_status' ,'inactive') # Line 44
#send mail to user that his account is Acivated
else
end
Line 44
失敗する可能性はありますか?データベースのメモリがいっぱいか、ネットワーク障害が発生したためです。その場合はどうなりますか?それが問題を引き起こす場合、それを回避するためのより良い方法は何ですか? update_attribute
失敗した場合、何が返されますか?