I am saving data to a table.
Question
title:string
author_id:integer
description:text
upvotes:integer
If a "question.upvotes" value is 1000000000000000000000, it will cause an error since it can't be saved to the "integer" type column.
How can I suppress this error? I want my program to continue running, even though the record failed to save.
I tried this, but it doesn't suppress the error:
... some code
if my_question.save
end
some more code...