Hi All, I have following piece of code
@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
Is there any chance that Line 44
get fail because of any reason (for ex:- Database memmory is full). what will happen in that case? if that creates problem what is better way to avoid it? what update_attribute
return if it get failed?