Here’s a fun little bug in the JRuby JDBC adapter for ActiveRecord. Numeric data is retrieved from the JDBC resultset using getInt. This could probably produce some nasty bugs. I created a bug report, and a patch is attached. If anyone else is having this problem, you may want to apply the patch now.
ActiveRecord-JDBC Bug: Numerics retrieved using getInt31 10 2006