I\'m trying to save a number representing the length of a file (4825733517). The column is set to type integer. I don\'t have any validations or restrictions set.
You should change the length of the column in your database with a migration :
update_column :my_table, :my_column, :integer, limit: 12
It will allow you to store bigger integers.