Using infinite floats in Ruby on Rails
It's because Float::INFINITY
in rails is defined as 1.0/0, that sqlite3 doesn't know what to do with it. You can use a very big number to define infinity like 9e999 as a replacement to the value you'll be saving to the database