replace convert_number_column_value with Rails 3 implementation (deprecated in Rails 4)